Add new total/total_increasing state-classes for Home Assistant 2021.9+ (#90)

This commit is contained in:
Jesse Hills 2021-08-24 03:02:10 +12:00 committed by GitHub
parent af25a63808
commit fff495d607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 20 deletions

View File

@ -448,6 +448,7 @@ message LightCommandRequest {
enum SensorStateClass {
STATE_CLASS_NONE = 0;
STATE_CLASS_MEASUREMENT = 1;
STATE_CLASS_TOTAL_INCREASING = 2;
}
enum SensorLastResetType {

File diff suppressed because one or more lines are too long

View File

@ -285,6 +285,7 @@ class LightState(EntityState):
class SensorStateClass(APIIntEnum):
NONE = 0
MEASUREMENT = 1
TOTAL_INCREASING = 2
class LastResetType(APIIntEnum):