From c5c5651149fbc57cf2934237400c1df16a97f811 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 1 Jul 2024 21:48:40 +0200 Subject: [PATCH] don't include type in name of device (in customization list) --- src/web/WebCustomizationService.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 77883d117..85febf215 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -163,10 +163,10 @@ void WebCustomizationService::devices(AsyncWebServerRequest * request) { for (const auto & emsdevice : EMSESP::emsdevices) { if (emsdevice->has_entities()) { JsonObject obj = devices.add(); - obj["i"] = emsdevice->unique_id(); // its unique id - obj["s"] = std::string(emsdevice->device_type_2_device_name_translated()) + " (" + emsdevice->name() + ")"; // shortname, is device type translated - obj["tn"] = emsdevice->device_type_name(); // non-translated, lower-case - obj["t"] = emsdevice->device_type(); // internal device type ID + obj["i"] = emsdevice->unique_id(); // its unique id + obj["s"] = emsdevice->name(); + obj["tn"] = emsdevice->device_type_name(); // non-translated, lower-case + obj["t"] = emsdevice->device_type(); // internal device type ID } }