mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[fan] Use register_apply_action for fan.toggle and fan.turn_off (#19600)
This commit is contained in:
@@ -104,6 +104,9 @@ button:
|
||||
fan.is_on: test_fan
|
||||
then:
|
||||
- fan.turn_off: test_fan
|
||||
- fan.toggle: test_fan
|
||||
- fan.turn_off:
|
||||
id: test_fan
|
||||
- if:
|
||||
condition:
|
||||
fan.is_off:
|
||||
|
||||
Reference in New Issue
Block a user