Fix string comparison

This commit is contained in:
Edward Firmo
2023-11-07 21:43:34 +01:00
parent 137539e85c
commit 0660ef0228

View File

@@ -2102,7 +2102,7 @@ script:
// Report new page to add-ons
ESP_LOGV(TAG, "Call add-ons scripts for new page");
addon_climate_set_climate->execute(page == "climate" and detailed_entity_id->state.c_str() == "embedded_climate");
addon_climate_set_climate->execute(page == "climate" and detailed_entity_id->state == "embedded_climate");
// Call page constructor
if (page == "boot") page_boot->execute(true);