From 1d52396e96959fb512818e315d288672c9649381 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Fri, 8 Mar 2024 13:20:22 +0100 Subject: [PATCH] Redraws hw buttons bars after page constructor --- esphome/nspanel_esphome_core.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index 46d4a6a..96bfba2 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -161,6 +161,8 @@ time: - seconds: 0 then: - script.execute: refresh_datetime + - script.execute: refresh_relays + - script.execute: refresh_hardware_buttons_bars on_time_sync: then: @@ -2160,6 +2162,8 @@ script: else if (page == "weather03") page_weather03->execute(); else if (page == "weather04") page_weather04->execute(); else if (page == "weather05") page_weather05->execute(); + - delay: 1s + - script.execute: refresh_hardware_buttons_bars - id: page_climate mode: restart @@ -2342,7 +2346,6 @@ script: } disp1->set_component_text_printf("home.meridiem", "%s", (time_format_str.find("%p") != std::string::npos) ? meridiem_text.c_str() : " "); disp1->set_component_text_printf("home.time", "%s", id(time_provider).now().strftime(time_format_str).c_str()); - refresh_hardware_buttons_bars->execute(); - id: refresh_hardware_buttons_bars mode: restart