1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

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

This commit is contained in:
Jesse Hills
2021-08-18 11:04:13 +12:00
parent 61a9c9fa33
commit 4e3b95d120
7 changed files with 13 additions and 0 deletions

View File

@@ -840,6 +840,9 @@ STATE_CLASS_NONE = ""
# The state represents a measurement in present time
STATE_CLASS_MEASUREMENT = "measurement"
# The state represents a total that only increases, a decrease is considered a reset.
STATE_CLASS_TOTAL_INCREASING = "total_increasing"
# This sensor does not support resetting. ie, it is not accumulative
LAST_RESET_TYPE_NONE = ""
# This sensor is expected to never reset its value