From 3d49a01f795b1f21eca00d4eb32dcfb5855490b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Such=C3=A1nek?= Date: Sun, 5 Jan 2025 00:33:04 +0100 Subject: [PATCH] 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. --- components/esphome.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/components/esphome.rst b/components/esphome.rst index 21837971a..f08aeb797 100644 --- a/components/esphome.rst +++ b/components/esphome.rst @@ -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: