From e4445413fdd6bdb285df6d06cffe4b66b8381a07 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 13 Oct 2022 14:08:53 +0200 Subject: [PATCH] fix console `show` values #682 --- src/emsesp.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index b4aed3c7f..688638bde 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -325,17 +325,7 @@ void EMSESP::show_device_values(uuid::console::Shell & shell) { shell.printf(" %s: ", key); JsonVariant data = p.value(); shell.print(COLOR_BRIGHT_GREEN); - if (data.is()) { - shell.print(data.as()); - } else if (data.is()) { - shell.print(data.as()); - } else if (data.is()) { - char s[10]; - shell.print(Helpers::render_value(s, data.as(), 1)); - } else if (data.is()) { - shell.print(data.as() ? Helpers::translated_word(FL_(on)) : Helpers::translated_word(FL_(off))); - } - + shell.print(data.as()); // if there is a uom print it std::string uom = emsdevice->get_value_uom(key); if (uom == "°C" && EMSESP::system_.fahrenheit()) {