Do not show QR code icon when disabled

Solves #1876
This commit is contained in:
Edward Firmo
2024-03-10 22:33:27 +01:00
parent 9da0744d80
commit 79a82f764a
16 changed files with 31 additions and 17 deletions

View File

@@ -19,10 +19,10 @@ external_components:
- source:
type: git
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: dev # To do: Change it for releasing
ref: beta # To do: Change it for releasing
components:
- nspanel_ha_blueprint_upload_tft
refresh: 3s # To do: Change it for releasing
refresh: 300s
# yamllint disable rule:comments-indentation
api:

View File

@@ -18,7 +18,7 @@ substitutions:
temp_units: "°C"
invalid_cooldown: "100ms"
##### DON'T CHANGE THIS ######
version: "4.3.0b1"
version: "4.3.0b2"
##############################
##### External components #####
@@ -28,10 +28,10 @@ external_components:
# path: packages/Blackymas/components
type: git
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: dev # To do: Change it for releasing
ref: beta # To do: Change it for releasing
components:
- nspanel_ha_blueprint
refresh: 3s # To do: Change it for releasing
refresh: 300s
- source:
type: git
url: https://github.com/edwardtfn/esphome
@@ -764,6 +764,7 @@ api:
then:
- lambda: |-
if (!id(is_uploading_tft)) {
set_component_visibility->execute("home.bt_qrcode", !(qrcode.empty()));
disp1->set_component_text_printf("qrcode.qrcode_label", "%s", title.c_str());
disp1->set_component_text_printf("qrcode.qrcode_value", "%s", qrcode.c_str());
if (show) goto_page->execute("qrcode");