[pn532] Use register_apply_condition for pn532.is_writing (#19737)

This commit is contained in:
J. Nick Koston
2026-09-26 16:45:04 -05:00
committed by GitHub
parent 7dd26ba9cc
commit 2d17ad2c91
4 changed files with 16 additions and 12 deletions
@@ -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