mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-29 04:27:32 +02: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
|
.. code-block:: yaml
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: hallway_light_script
|
- id: hallway_light_script
|
||||||
mode: restart # Light will be kept on during 1 minute since
|
mode: restart # Light will be kept on during 1 minute since
|
||||||
# the latest time the script is executed
|
# the latest time the script is executed
|
||||||
then:
|
then:
|
||||||
- light.turn_on: hallway_light
|
- light.turn_on: hallway_light
|
||||||
- delay: 1 min
|
- delay: 1 min
|
||||||
- light.turn_off: hallway_light
|
- light.turn_off: hallway_light
|
||||||
|
|
||||||
...
|
...
|
||||||
on_...: # can be called from different wall switches
|
on_...: # can be called from different wall switches
|
||||||
|
Loading…
Reference in New Issue
Block a user