mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 01:29:07 +03:00
updates to add_ha_classes
This commit is contained in:
@@ -352,8 +352,8 @@ void WebCustomEntityService::get_value_json(JsonObject output, CustomEntityItem
|
||||
}
|
||||
}
|
||||
|
||||
// add uom state class and device class
|
||||
Mqtt::add_ha_classes(output, EMSdevice::DeviceType::SYSTEM, entity.value_type, entity.uom, nullptr, false);
|
||||
// add uom state class and device class to output json, excluding icon
|
||||
Mqtt::add_ha_classes(output, EMSdevice::DeviceType::SYSTEM, entity.value_type, entity.uom, nullptr, true); // display only
|
||||
|
||||
render_value(output, entity, true); // create the "value" field
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user