mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
use DeviceTypeUniqueID
This commit is contained in:
@@ -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<JsonObject>();
|
||||
} else {
|
||||
obj = root_obj;
|
||||
|
||||
Reference in New Issue
Block a user