Fix type name to NextionComponent

This commit is contained in:
Edward Firmo
2024-02-23 12:12:48 +01:00
parent 384e7d4c29
commit 38b2da0976
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
namespace nspanel_ha_blueprint { namespace nspanel_ha_blueprint {
struct PageComponent { struct NextionComponent {
std::string page; std::string page;
std::string component_id; std::string component_id;
bool is_current_page; bool is_current_page;
@@ -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 PageComponent struct containing the extracted or default page name, the component ID, and a flag indicating if it's the current page. * @return A PageComponent struct containing the extracted or default page name, the component ID, and a flag indicating if it's the current page.
*/ */
PageComponent extractPageAndComponent(const std::string& input, const std::string& defaultPage) { NextionComponent extractPageAndComponent(const std::string& input, const std::string& defaultPage) {
size_t dotPos = input.find("."); size_t dotPos = input.find(".");
PageComponent result; PageComponent result;

View File

@@ -26,7 +26,8 @@ external_components:
- source: - source:
type: git type: git
url: https://github.com/Blackymas/NSPanel_HA_Blueprint url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: dev # To do: Change it for releasing ref: dev # To do: Change it for releasing
refresh: 3s # To do: Change it for releasing
- source: - source:
type: git type: git
url: https://github.com/edwardtfn/esphome url: https://github.com/edwardtfn/esphome