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