Fix namespace names
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace nspanel_ha_blueprint {
|
||||
namespace nspanel_ha_blueprint_upload_tft {
|
||||
|
||||
/**
|
||||
* Constructs the TFT file URL based on branch, model, default URL, and base URL.
|
||||
@@ -42,4 +42,4 @@ namespace nspanel_ha_blueprint {
|
||||
return url; // Return the constructed URL
|
||||
}
|
||||
|
||||
} // namespace nspanel_ha_blueprint
|
||||
} // namespace nspanel_ha_blueprint_upload_tft
|
||||
|
||||
@@ -60,7 +60,10 @@ api:
|
||||
// Trim trailing spaces
|
||||
auto endPos = clean_url.find_last_not_of(" \t");
|
||||
if (std::string::npos != endPos) clean_url = clean_url.substr(0, endPos + 1);
|
||||
if (clean_url.empty() or clean_url == "default") url = construct_tft_url("v${version}", tft_file_model->state, "${nextion_update_url}", "${nextion_update_base_url}");
|
||||
if (clean_url.empty() or clean_url == "default") url = nspanel_ha_blueprint_upload_tft::construct_tft_url("v${version}",
|
||||
tft_file_model->state,
|
||||
"${nextion_update_url}",
|
||||
"${nextion_update_base_url}");
|
||||
upload_tft->execute(url.c_str());
|
||||
# yamllint enable rule:comments-indentation
|
||||
|
||||
@@ -73,7 +76,10 @@ button:
|
||||
entity_category: config
|
||||
on_press:
|
||||
- lambda: |-
|
||||
upload_tft->execute(construct_tft_url("v${version}", tft_file_model->state, "${nextion_update_url}", "${nextion_update_base_url}").c_str());
|
||||
upload_tft->execute(nspanel_ha_blueprint_upload_tft::construct_tft_url("v${version}",
|
||||
tft_file_model->state,
|
||||
"${nextion_update_url}",
|
||||
"${nextion_update_base_url}").c_str());
|
||||
|
||||
display:
|
||||
- id: !extend disp1
|
||||
|
||||
Reference in New Issue
Block a user