I have been trying to tidy configuration.yaml up, there seem to be a number of settings (see script syntax at https://www.home-assistant.io/docs/scripts/) which use the list prefix ‘-’ even if there is no list (e.g. delay) If I put in a delay as
action:
- delay: 00:03
- service: homekit.start
this is accepted, however neither of these are lists, what looks like correct yaml:
action:
delay: 00:03
service: homekit.start
creates an error:
Invalid config for [automation]: [delay] is an invalid option for [automation]. Check: automation->action->0->delay. (See /config/configuration.yaml, line 120).
this is even more confusing as the delay statement is on line 8, there is no delay on line 120…
Why does delay need the list prefix, or is ‘-’ used for other things besides lists in yaml?