Fix MQTT discovery for sensor state_class (#2331)

This commit is contained in:
Paul Monigatti authored and Jesse Hills committed 2021-09-20 14:16:39 +12:00
1 parent 321504cf29
commit c78fb90e2f
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ namespace sensor {
static const char *const TAG = "sensor";
const char *state_class_to_string(StateClass state_class) {
std::string state_class_to_string(StateClass state_class) {
switch (state_class) {
case STATE_CLASS_MEASUREMENT:
return "measurement";