Fix type name to NextionComponent
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ external_components:
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user