esphome.rst: Show on_boot/on_Shutdown priority as list item (#4557)

Multiple priorities can be used in a list. Show the value as a list item in the code example to make this clear.
This commit is contained in:
Michal Suchánek 2025-01-05 00:33:04 +01:00 committed by GitHub
parent 80ca2afd06
commit 3d49a01f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,10 +100,9 @@ is already set up. You can however change this using the ``priority`` parameter.
esphome:
# ...
on_boot:
priority: 600
# ...
then:
- switch.turn_off: switch_1
- priority: 600
then:
- switch.turn_off: switch_1
Configuration variables:
@ -138,9 +137,9 @@ too many WiFi/MQTT connection attempts, Over-The-Air updates being applied or th
esphome:
# ...
on_shutdown:
priority: 700
then:
- switch.turn_off: switch_1
- priority: 700
then:
- switch.turn_off: switch_1
Configuration variables: