mirror of
https://github.com/esphome/esphome.git
synced 2025-10-26 20:53:50 +00:00
Add new total_increasing state-class for Home Assistant 2021.9+ (#2166)
This commit is contained in:
@@ -37,6 +37,7 @@ namespace sensor {
|
||||
enum StateClass : uint8_t {
|
||||
STATE_CLASS_NONE = 0,
|
||||
STATE_CLASS_MEASUREMENT = 1,
|
||||
STATE_CLASS_TOTAL_INCREASING = 2,
|
||||
};
|
||||
|
||||
const char *state_class_to_string(StateClass state_class);
|
||||
|
||||
Reference in New Issue
Block a user