[lock] Refactor trigger classes to template and add integration tests (#12193)

This commit is contained in:
J. Nick Koston
2025-11-30 17:09:02 -06:00
committed by GitHub
parent 8308bc2911
commit 82e1238330
3 changed files with 80 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
esphome:
name: lock-automations-test
host:
api: # Port will be automatically injected
logger:
level: DEBUG
lock:
- platform: template
id: test_lock
name: "Test Lock"
optimistic: true
on_lock:
- logger.log: "TRIGGER: on_lock fired"
on_unlock:
- logger.log: "TRIGGER: on_unlock fired"