Redraws hw buttons bars after page constructor

This commit is contained in:
Edward Firmo
2024-03-08 13:20:22 +01:00
parent fa8ee066ac
commit 1d52396e96

View File

@@ -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