Add new total_increasing state-class for Home Assistant 2021.9+ (#2166)

This commit is contained in:
Jesse Hills committed 2021-08-18 11:11:39 +12:00
1 parent 61a9c9fa33
commit 4e3b95d120
7 files changed
+13

No files matched your search

+2
View File
@@ -94,6 +94,8 @@ template<> const char *proto_enum_to_string<enums::SensorStateClass>(enums::Sens
return "STATE_CLASS_NONE";
case enums::STATE_CLASS_MEASUREMENT:
return "STATE_CLASS_MEASUREMENT";
case enums::STATE_CLASS_TOTAL_INCREASING:
return "STATE_CLASS_TOTAL_INCREASING";
default:
return "UNKNOWN";
}