Use component nspanel_ha_blueprint from dev

To update page list
This commit is contained in:
Edward Firmo
2024-03-19 13:16:35 +01:00
parent ce43a31242
commit 3dbf577a92
5 changed files with 8 additions and 55 deletions

View File

@@ -27,7 +27,7 @@ external_components:
# path: packages/Blackymas/components
type: git
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
ref: dev # To do: Change to "main" when releasing
components:
- nspanel_ha_blueprint
refresh: 300s
@@ -2462,6 +2462,11 @@ script:
mode: restart
then:
- lambda: |-
#if ESPHOME_LOG_LEVEL > ESPHOME_LOG_LEVEL_DEBUG
ESP_LOGV("script.refresh_hardware_buttons_bars", "Page: %s", current_page->state.c_str());
ESP_LOGV("script.refresh_hardware_buttons_bars", "Page id: %i", get_page_id(current_page->state.c_str()));
ESP_LOGV("script.refresh_hardware_buttons_bars", "buttons_bars_pages: %i", id(buttons_bars_pages));
#endif
if (!id(is_uploading_tft) and ((id(buttons_bars_pages) & (1 << get_page_id(current_page->state.c_str()))) != 0)) {
switch (int(display_mode->state)) {
case 1: // EU model