From 8d7a3f8eb8e882d5e5f6930363401ca24dfc2c48 Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Sun, 21 Jan 2024 11:18:34 +0100 Subject: [PATCH] loglevel => debug --- components/ehmtxv2/EHMTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index 889fa5a1..cef2f368 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -2475,7 +2475,7 @@ namespace esphome bool EHMTX::draw_clock(std::string format, esphome::display::BaseFont *font, Color color, int xpos, int ypos) { - std::regex rgx{" "}; + std::regex rgx{"^(%[HI])(.)(%M)(.)?(%S|%p)?$"}; std::smatch match; if (!std::regex_search(format, match, rgx)) return false;