mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-14 01:21:33 +01:00
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:
parent
80ca2afd06
commit
3d49a01f79
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user