Fix entity info when calling detailed pages

Solves #1022
This commit is contained in:
Edward Firmo
2023-09-09 02:58:23 +02:00
parent 5ed58d8f24
commit b5bb42c68d
41 changed files with 943 additions and 325 deletions

View File

@@ -77,9 +77,9 @@ script:
then:
- lambda: |-
ESP_LOGV("script.addon_climate_update_page_home", "Starting");
// Update home.entity variable
ESP_LOGV("script.addon_climate_update_page_home", "Update home.entity variable: %s", (id(is_embedded_thermostat)) ? "embedded_climate" : "");
id(disp1).set_component_text_printf("home.entity", (id(is_embedded_thermostat)) ? "embedded_climate" : "");
// Update home.climate_entity variable
ESP_LOGV("script.addon_climate_update_page_home", "Update home.climate_entity variable: %s", (id(is_embedded_thermostat)) ? "embedded_climate" : "");
id(disp1).set_component_text_printf("home.climate_entity", (id(is_embedded_thermostat)) ? "embedded_climate" : "");
// Update chips
if (id(is_embedded_thermostat))
{