mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[pn532] Use register_apply_condition for pn532.is_writing (#19737)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: PN532 write state
|
||||
on_press:
|
||||
- if:
|
||||
condition:
|
||||
pn532.is_writing:
|
||||
id: pn532_nfcc_i2c
|
||||
then:
|
||||
- logger.log: Writing
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
pn532_i2c: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user