From e8d127681c3ad57514fdd03eb6f5e449b72ad602 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:19:20 +0100 Subject: [PATCH] Fix reference to NextionComponent --- components/nspanel_ha_blueprint/nextion_components.h | 2 +- esphome/nspanel_esphome_core.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/nspanel_ha_blueprint/nextion_components.h b/components/nspanel_ha_blueprint/nextion_components.h index 93ba667..56403ed 100644 --- a/components/nspanel_ha_blueprint/nextion_components.h +++ b/components/nspanel_ha_blueprint/nextion_components.h @@ -19,7 +19,7 @@ namespace nspanel_ha_blueprint { * @param defaultPage The default page name to use if the input string does not specify a page. * @return A NextionComponent struct containing the extracted or default page name, the component ID, and a flag indicating if it's the current page. */ - NextionComponent extractPageAndComponent(const std::string& input, const std::string& defaultPage) { + NextionComponent extractNextionComponent(const std::string& input, const std::string& defaultPage) { size_t dotPos = input.find("."); NextionComponent result; diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index 798263b..a9068f0 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -3173,9 +3173,9 @@ script: nspanel_ha_blueprint::NextionComponent component = nspanel_ha_blueprint::extractNextionComponent(component_id, current_page->state); if (component.is_current_page) { if (show) - disp1->show_component(component.component_id); + disp1->show_component(component.component_id.c_str()); else - disp1->hide_component(component.component_id); + disp1->hide_component(component.component_id.c_str()); } - id: setup_sequence