From fdfc5e0e68c5c822e18c2e94b40b8d4982a3f2db Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Mar 2022 19:57:11 +0200 Subject: [PATCH] include name of device in options --- src/web/WebCustomizationService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 21bc198ba..78a0616b5 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -175,9 +175,9 @@ void WebCustomizationService::devices(AsyncWebServerRequest * request) { uint8_t device_index = EMSESP::device_index(emsdevice->device_type(), emsdevice->unique_id()); if (device_index) { char s[10]; - obj["s"] = emsdevice->device_type_name() + Helpers::smallitoa(s, device_index); + obj["s"] = emsdevice->device_type_name() + Helpers::smallitoa(s, device_index) + " (" + emsdevice->name() + ")"; } else { - obj["s"] = emsdevice->device_type_name(); + obj["s"] = emsdevice->device_type_name() + " (" + emsdevice->name() + ")"; } } }