From a001a314018570841f334c04447271282bd39b58 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 10 Oct 2024 21:26:39 +0100 Subject: [PATCH] use DeviceTypeUniqueID --- src/web/WebCustomEntityService.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web/WebCustomEntityService.cpp b/src/web/WebCustomEntityService.cpp index 268c9b4ff..cca572bf5 100644 --- a/src/web/WebCustomEntityService.cpp +++ b/src/web/WebCustomEntityService.cpp @@ -483,8 +483,7 @@ void WebCustomEntityService::generate_value_web(JsonObject output, const bool is JsonObject obj; if (is_dashboard) { - // TODO make #define for 99 - root_obj["id"] = (99 * 100) + index; // make unique + root_obj["id"] = (EMSdevice::DeviceTypeUniqueID::CUSTOM_UID * 100) + index; // make unique obj = root_obj["dv"].to(); } else { obj = root_obj;