Fix reference to NextionComponent
This commit is contained in:
@@ -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.
|
* @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.
|
* @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(".");
|
size_t dotPos = input.find(".");
|
||||||
NextionComponent result;
|
NextionComponent result;
|
||||||
|
|
||||||
|
|||||||
@@ -3173,9 +3173,9 @@ script:
|
|||||||
nspanel_ha_blueprint::NextionComponent component = nspanel_ha_blueprint::extractNextionComponent(component_id, current_page->state);
|
nspanel_ha_blueprint::NextionComponent component = nspanel_ha_blueprint::extractNextionComponent(component_id, current_page->state);
|
||||||
if (component.is_current_page) {
|
if (component.is_current_page) {
|
||||||
if (show)
|
if (show)
|
||||||
disp1->show_component(component.component_id);
|
disp1->show_component(component.component_id.c_str());
|
||||||
else
|
else
|
||||||
disp1->hide_component(component.component_id);
|
disp1->hide_component(component.component_id.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
- id: setup_sequence
|
- id: setup_sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user