Fixed indentation of example (#1239)

This commit is contained in:
Ockert Marais 2021-06-14 14:05:12 +02:00 committed by GitHub
parent 71e3e1ff35
commit 7a12488872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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