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:
@@ -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
|
||||
|
Reference in New Issue
Block a user