From 071ee7f39a024906aea85eee4eafd2cef41ecf9e Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:50:40 +0200 Subject: [PATCH] Disable restore `notification_unread` This must be changed to a binary sensor in the future. --- .gitignore | 4 ++++ nspanel_esphome.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7c98d2d..071293d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ # Ignore Mac DS_Store files .DS_Store **/.DS_Store + Nextion2Text.* *.cmd *.bat + +# Ignore IntelliJ IDEA project directory +.idea diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 90e1d1a..f9f6ddc 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -1309,7 +1309,7 @@ switch: id: notification_unread entity_category: config optimistic: true - restore_mode: RESTORE_DEFAULT_ON + restore_mode: ALWAYS_OFF on_turn_on: - lambda: id(set_component_color).execute("home.bt_notific", id(home_notify_icon_color_unread), {}); on_turn_off: