1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 05:03:48 +00:00

Add state_class total (#3608)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Peter Galantha
2022-08-10 19:00:09 -07:00
committed by GitHub
parent 479f7703a2
commit aeb81e547b
7 changed files with 11 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ enum StateClass : uint8_t {
STATE_CLASS_NONE = 0,
STATE_CLASS_MEASUREMENT = 1,
STATE_CLASS_TOTAL_INCREASING = 2,
STATE_CLASS_TOTAL = 3,
};
std::string state_class_to_string(StateClass state_class);