From 21a4cb418e4ae3e0415f070ac86cd88c652c12fb Mon Sep 17 00:00:00 2001 From: "Andrew J.Swan" Date: Sun, 31 Mar 2024 21:54:26 +0300 Subject: [PATCH] 2024.4.0: Fix for display Off https://github.com/lubeda/EspHoMaTriXv2/issues/222 Co-authored-by: popy2k14 --- components/ehmtxv2/EHMTX.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index c73733f..babdf79 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -140,7 +140,11 @@ namespace esphome { this->show_display = false; ESP_LOGD(TAG, "display off"); - display->clear(); + + if (this->is_running) + { + this->display->clear(); + } for (auto *t : on_show_display_triggers_) {