From 71d086a8db62085759d35edc25d5197ecc190aef Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 22 Apr 2023 21:04:54 +0200 Subject: [PATCH] device_id and type_id as numbers --- src/web/WebEntityService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/WebEntityService.cpp b/src/web/WebEntityService.cpp index 7ed4c4afd..e89d1b032 100644 --- a/src/web/WebEntityService.cpp +++ b/src/web/WebEntityService.cpp @@ -41,8 +41,8 @@ void WebEntity::read(WebEntity & webEntity, JsonObject & root) { for (const EntityItem & entityItem : webEntity.entityItems) { JsonObject ei = entity.createNestedObject(); ei["id"] = counter++; // id is only used to render the table and must be unique - ei["device_id"] = Helpers::hextoa(entityItem.device_id, false); - ei["type_id"] = Helpers::hextoa(entityItem.type_id, false); + ei["device_id"] = entityItem.device_id; + ei["type_id"] = entityItem.type_id; ei["offset"] = entityItem.offset; ei["factor"] = entityItem.factor; ei["name"] = entityItem.name;