From 0660ef02289c58d79209603577b60ba10eca6fcf Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Tue, 7 Nov 2023 21:43:34 +0100 Subject: [PATCH] Fix string comparison --- nspanel_esphome_core.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nspanel_esphome_core.yaml b/nspanel_esphome_core.yaml index dfee2f7..20b2aed 100644 --- a/nspanel_esphome_core.yaml +++ b/nspanel_esphome_core.yaml @@ -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);