2022-04-13 02:26:55 +02:00
|
|
|
from esphome import automation
|
2021-01-14 21:29:55 +01:00
|
|
|
import esphome.codegen as cg
|
|
|
|
|
2024-01-16 09:05:13 +01:00
|
|
|
CODEOWNERS = ["@jesserockz", "@kbx81"]
|
2021-01-14 21:29:55 +01:00
|
|
|
|
2021-03-07 20:03:16 +01:00
|
|
|
nfc_ns = cg.esphome_ns.namespace("nfc")
|
2021-01-14 21:29:55 +01:00
|
|
|
|
2024-01-16 09:05:13 +01:00
|
|
|
Nfcc = nfc_ns.class_("Nfcc")
|
2021-03-07 20:03:16 +01:00
|
|
|
NfcTag = nfc_ns.class_("NfcTag")
|
2024-01-16 09:05:13 +01:00
|
|
|
NfcTagListener = nfc_ns.class_("NfcTagListener")
|
2022-04-13 02:26:55 +02:00
|
|
|
NfcOnTagTrigger = nfc_ns.class_(
|
|
|
|
"NfcOnTagTrigger", automation.Trigger.template(cg.std_string, NfcTag)
|
|
|
|
)
|