[lock] Refactor trigger classes to template and add integration tests (#12193)
This commit is contained in:
17
tests/integration/fixtures/lock_automations.yaml
Normal file
17
tests/integration/fixtures/lock_automations.yaml
Normal 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"
|
||||
Reference in New Issue
Block a user