mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 10:35:42 +00:00
Fix stat_class for energy sensor (#865)
This commit is contained in:
committed by
GitHub
parent
b9f4a9c2ad
commit
c094e8fd01
@ -574,7 +574,7 @@ HassDeviceInfo* hass_init_sensor_device_info(ENTITY_TYPE type, int channel, int
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (type != READONLYLOWMIDHIGH_SENSOR) {
|
||||
if (type != READONLYLOWMIDHIGH_SENSOR && type != ENERGY_SENSOR) {
|
||||
cJSON_AddStringToObject(info->root, "stat_cla", "measurement");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user