Redraws hw buttons bars after page constructor
This commit is contained in:
@@ -161,6 +161,8 @@ time:
|
|||||||
- seconds: 0
|
- seconds: 0
|
||||||
then:
|
then:
|
||||||
- script.execute: refresh_datetime
|
- script.execute: refresh_datetime
|
||||||
|
- script.execute: refresh_relays
|
||||||
|
- script.execute: refresh_hardware_buttons_bars
|
||||||
|
|
||||||
on_time_sync:
|
on_time_sync:
|
||||||
then:
|
then:
|
||||||
@@ -2160,6 +2162,8 @@ script:
|
|||||||
else if (page == "weather03") page_weather03->execute();
|
else if (page == "weather03") page_weather03->execute();
|
||||||
else if (page == "weather04") page_weather04->execute();
|
else if (page == "weather04") page_weather04->execute();
|
||||||
else if (page == "weather05") page_weather05->execute();
|
else if (page == "weather05") page_weather05->execute();
|
||||||
|
- delay: 1s
|
||||||
|
- script.execute: refresh_hardware_buttons_bars
|
||||||
|
|
||||||
- id: page_climate
|
- id: page_climate
|
||||||
mode: restart
|
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.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());
|
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
|
- id: refresh_hardware_buttons_bars
|
||||||
mode: restart
|
mode: restart
|
||||||
|
|||||||
Reference in New Issue
Block a user