Fix issue with restore_state and ESPHome v2023.7.0 (#941)

Solves #939
This commit is contained in:
Edward Firmo
2023-07-19 13:54:54 +02:00
committed by GitHub
parent 2b62a770f7
commit 496392a382

View File

@@ -736,7 +736,7 @@ switch:
platform: template
id: notification_unread
entity_category: config
restore_state: true
restore_mode: RESTORE_DEFAULT_OFF
optimistic: true
##### Notification sound #####
@@ -744,7 +744,6 @@ switch:
platform: template
id: notification_sound
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
@@ -753,7 +752,7 @@ switch:
platform: template
id: confirmation_message
entity_category: config
restore_state: false
restore_mode: RESTORE_DEFAULT_OFF
optimistic: true
##### PHYSICAL SWITCH 1 #####
@@ -790,7 +789,6 @@ switch:
id: sleep_mode
entity_category: config
restore_mode: RESTORE_DEFAULT_OFF
restore_state: true
optimistic: false
turn_on_action: &sleep_mode-turn_on
- logger.log: "Sleep mode - Turn on"
@@ -812,7 +810,6 @@ switch:
platform: template
id: relay1_fallback
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
@@ -820,7 +817,6 @@ switch:
platform: template
id: relay2_fallback
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
@@ -904,7 +900,7 @@ display:
- logger.log: "Nextion start - Jump to page 8"
- lambda: id(disp1).send_command_printf("page 8");
- logger.log: "Nextion start - Publish ESPHome version"
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.4"); ### esphome-version ###
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.4.1"); ### esphome-version ###
- logger.log: "Nextion start - Wait for Home Assistant API"
- wait_until:
api.connected