Move PN532OnTagTrigger to nfc::NfcOnTagTrigger (#3379)

This commit is contained in:
Jesse Hills
2022-04-13 12:26:55 +12:00
committed by GitHub
parent a519e5c475
commit b622a8fa58
6 changed files with 40 additions and 20 deletions
+9
View File
@@ -0,0 +1,9 @@
#include "automation.h"
namespace esphome {
namespace nfc {
void NfcOnTagTrigger::process(const std::unique_ptr<NfcTag> &tag) { this->trigger(format_uid(tag->get_uid()), *tag); }
} // namespace nfc
} // namespace esphome