fix case fall through for HA state_class

This commit is contained in:
proddy
2021-10-19 17:40:46 +02:00
parent 48cedbd0fb
commit 8fed47f39b

View File

@@ -1060,9 +1060,11 @@ void Mqtt::publish_ha_sensor(uint8_t type, // EMSdevice::Dev
|| type == DeviceValueType::ULONG) {
doc["ic"] = F_(iconnum);
}
break;
case DeviceValueUOM::TIMES:
set_state_class = State_class::TOTAL_INCREASING;
doc["ic"] = F_(iconnum);
break;
default:
break;
}