[hlk_fm22x] Use register_apply_action for scan, enroll, delete, delete_all and reset (#19537)

This commit is contained in:
J. Nick Koston
2026-09-23 16:55:16 -05:00
committed by GitHub
parent 5e8f620362
commit 4e2d1cd7fc
3 changed files with 20 additions and 87 deletions
+7
View File
@@ -4,11 +4,18 @@ esphome:
- hlk_fm22x.enroll:
name: "Test"
direction: 1
- hlk_fm22x.delete: 5
- hlk_fm22x.delete_all:
- hlk_fm22x.reset:
- hlk_fm22x.scan:
hlk_fm22x:
on_face_scan_matched:
- logger.log: test_hlk_22x_face_scan_matched
- hlk_fm22x.enroll:
name: !lambda 'return name + "-again";'
direction: !lambda 'return face_id % 3;'
- hlk_fm22x.delete: !lambda 'return face_id;'
on_face_scan_unmatched:
- logger.log: test_hlk_22x_face_scan_unmatched
on_face_scan_invalid: