From 9aa8421117b7b76c352710f84d2947966293b764 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 19 Jul 2023 18:56:15 +0200 Subject: [PATCH] Fix issue with `restore_state` and ESPHome v2023.7.0 (#941) (#943) Solves #939 --- nspanel_esphome.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 2cb337e..25070ef 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -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