Fix is_uploading_tft name

This commit is contained in:
Edward Firmo
2024-03-22 12:25:06 +01:00
parent 3fb8343246
commit 7db6e4598d

View File

@@ -282,7 +282,7 @@ api:
state: bool # State for the button(s) indication: true for active, false for inactive state: bool # State for the button(s) indication: true for active, false for inactive
then: then:
- lambda: |- - lambda: |-
if (!id(is_uploading)) { if (!id(is_uploading_tft)) {
// Updates the visual state indication for hardware buttons // Updates the visual state indication for hardware buttons
// Use bitwise AND to check specific bits // Use bitwise AND to check specific bits
if (button_mask & 1) // Checks if the least significant bit is set (left button) if (button_mask & 1) // Checks if the least significant bit is set (left button)
@@ -323,7 +323,7 @@ api:
then: then:
- if: - if:
condition: condition:
- lambda: return (!id(is_uploading)); - lambda: return (!id(is_uploading_tft));
then: then:
- script.execute: - script.execute:
id: global_settings id: global_settings
@@ -360,7 +360,7 @@ api:
then: then:
- if: - if:
condition: condition:
- lambda: return (!id(is_uploading)); - lambda: return (!id(is_uploading_tft));
then: then:
- script.execute: - script.execute:
id: init_hardware_climate id: init_hardware_climate
@@ -516,7 +516,7 @@ api:
- service: notification_clear - service: notification_clear
then: then:
- lambda: |- - lambda: |-
if (!id(is_uploading)) { if (!id(is_uploading_tft)) {
if (current_page->state == "notification") goto_page->execute("home"); if (current_page->state == "notification") goto_page->execute("home");
notification_label->publish_state(""); notification_label->publish_state("");
notification_text->publish_state(""); notification_text->publish_state("");