1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[lock] Tidy up template publish action and lockstate locations (#8729)

This commit is contained in:
Jesse Hills
2025-05-09 18:19:03 +12:00
committed by GitHub
parent 23fb1bed61
commit b3400a1308
5 changed files with 49 additions and 37 deletions

View File

@@ -27,9 +27,7 @@ lock:
id: test_lock1
state: !lambda "return LOCK_STATE_UNLOCKED;"
on_lock:
- lock.template.publish:
id: test_lock1
state: !lambda "return LOCK_STATE_LOCKED;"
- lock.template.publish: LOCKED
- platform: output
name: Generic Output Lock
id: test_lock2