From 2ebb77ff3765f20c68f764d48ec08dea51047f63 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 30 Mar 2022 20:59:47 +0200 Subject: [PATCH] don't prefix a count with more than 1 thermostats --- src/web/WebCustomizationService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 89cc6af8a..8c81d172c 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -171,6 +171,7 @@ void WebCustomizationService::devices(AsyncWebServerRequest * request) { JsonObject obj = devices.createNestedObject(); obj["i"] = emsdevice->unique_id(); // a unique id + /* // shortname - we prefix the count to make it unique uint8_t device_index = EMSESP::device_index(emsdevice->device_type(), emsdevice->unique_id()); if (device_index) { @@ -179,6 +180,8 @@ void WebCustomizationService::devices(AsyncWebServerRequest * request) { } else { obj["s"] = emsdevice->device_type_name() + " (" + emsdevice->name() + ")"; } + */ + obj["s"] = emsdevice->device_type_name() + " (" + emsdevice->name() + ")"; } }