Fix stat_class for energy sensor (#865)

This commit is contained in:
Aleksey Zagorodnikov
2023-06-25 21:25:17 +06:00
committed by GitHub
parent b9f4a9c2ad
commit c094e8fd01

View File

@ -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");
}