Fix string comparison
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user