From 8fed47f39b882b50ee70f42fed192f954d6be9f8 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 19 Oct 2021 17:40:46 +0200 Subject: [PATCH] fix case fall through for HA state_class --- src/mqtt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 838e90821..841bbcc1f 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -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; }