Skip to content

Commit

Permalink
fix rate_device_class
Browse files Browse the repository at this point in the history
  • Loading branch information
caco3 committed Oct 13, 2024
1 parent f6fd351 commit e8886f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/jomjol_mqtt/server_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ bool MQTThomeassistantDiscovery(int qos) {
/* Energy meters need a different Device Class, see https://github.com/jomjol/AI-on-the-edge-device/issues/3333 */
std::string rate_device_class = "volume_flow_rate";
if (meterType == "energy") {
value_state_class = "power";
rate_device_class = "power";
}

// Group | Field | User Friendly Name | Icon | Unit | Device Class | State Class | Entity Category
Expand Down

0 comments on commit e8886f3

Please sign in to comment.