Skip to content

Commit

Permalink
fix case fall through for HA state_class
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Oct 19, 2021
1 parent 48cedbd commit 8fed47f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8fed47f

Please sign in to comment.