don't prefix a count with more than 1 thermostats

This commit is contained in:
proddy
2022-03-30 20:59:47 +02:00
parent 744154ccf4
commit 2ebb77ff37

View File

@@ -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() + ")";
}
}