mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix case fall through for HA state_class
This commit is contained in:
@@ -1060,9 +1060,11 @@ void Mqtt::publish_ha_sensor(uint8_t type, // EMSdevice::Dev
|
|||||||
|| type == DeviceValueType::ULONG) {
|
|| type == DeviceValueType::ULONG) {
|
||||||
doc["ic"] = F_(iconnum);
|
doc["ic"] = F_(iconnum);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case DeviceValueUOM::TIMES:
|
case DeviceValueUOM::TIMES:
|
||||||
set_state_class = State_class::TOTAL_INCREASING;
|
set_state_class = State_class::TOTAL_INCREASING;
|
||||||
doc["ic"] = F_(iconnum);
|
doc["ic"] = F_(iconnum);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user