From 786f7795ed3788d233fa5564182eb5fed55bca32 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:12:27 +0100 Subject: [PATCH] Close Notification page when cleared --- nspanel_esphome_core.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nspanel_esphome_core.yaml b/nspanel_esphome_core.yaml index cdd3be4..89bdf83 100644 --- a/nspanel_esphome_core.yaml +++ b/nspanel_esphome_core.yaml @@ -2563,10 +2563,11 @@ script: then: - lambda: |- disp1->send_command_printf("is_notification=0"); - if (current_page->state == "home") disp1->hide_component("bt_notific"); + if (current_page->state == "notification") disp1->goto_page("home"); notification_label->publish_state(""); notification_text->publish_state(""); notification_unread->turn_off(); + if (current_page->state == "home") disp1->hide_component("bt_notific"); ##### ADD-ONS ############################################################ ##### Add-on - Climate #####