Skip to content

Commit

Permalink
HASS MQTT patch typo (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjikka authored Nov 21, 2024
1 parent 9d92cc8 commit 926db00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpserver/hass.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ HassDeviceInfo* hass_init_energy_sensor_device_info(int index) {
//20241024 XJIKKA skip measurement for timestamp - HASS log:
//HASS: energy_clear_date (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement'
// which is impossible considering device class ('timestamp') it is using; expected None;
if (!strcmp(DRV_GetEnergySensorNames(index)->hass_dev_class,"timestamp")) {
if (strcmp(DRV_GetEnergySensorNames(index)->hass_dev_class,"timestamp")) {
cJSON_AddStringToObject(info->root, "stat_cla", "measurement");
}
//20241024 XJIKKA if unit is not set (drv_bl_shared.c @ "power_factor"), mqtt value unit_of_meas was empty - HASS log:
Expand Down

0 comments on commit 926db00

Please sign in to comment.