mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59: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;
|
JsonObject obj;
|
||||||
if (is_dashboard) {
|
if (is_dashboard) {
|
||||||
// TODO make #define for 99
|
root_obj["id"] = (EMSdevice::DeviceTypeUniqueID::CUSTOM_UID * 100) + index; // make unique
|
||||||
root_obj["id"] = (99 * 100) + index; // make unique
|
|
||||||
obj = root_obj["dv"].to<JsonObject>();
|
obj = root_obj["dv"].to<JsonObject>();
|
||||||
} else {
|
} else {
|
||||||
obj = root_obj;
|
obj = root_obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user