mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
Fixed indentation of example (#1239)
This commit is contained in:
parent
71e3e1ff35
commit
7a12488872
@ -792,13 +792,13 @@ using script modes ``single`` and ``restart`` respectively.
|
||||
.. code-block:: yaml
|
||||
|
||||
script:
|
||||
- id: hallway_light_script
|
||||
mode: restart # Light will be kept on during 1 minute since
|
||||
# the latest time the script is executed
|
||||
then:
|
||||
- light.turn_on: hallway_light
|
||||
- delay: 1 min
|
||||
- light.turn_off: hallway_light
|
||||
- id: hallway_light_script
|
||||
mode: restart # Light will be kept on during 1 minute since
|
||||
# the latest time the script is executed
|
||||
then:
|
||||
- light.turn_on: hallway_light
|
||||
- delay: 1 min
|
||||
- light.turn_off: hallway_light
|
||||
|
||||
...
|
||||
on_...: # can be called from different wall switches
|
||||
|
Loading…
Reference in New Issue
Block a user