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

This commit is contained in:
Jesse Hills authored and GitHub committed 2021-08-18 11:04:13 +12:00
1 parent fbd9e87b51
commit f0b14055b6
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";
}