Skip to content

Commit

Permalink
Restore a workaround for negative statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeyev committed Jan 30, 2024
1 parent 8a2730b commit e86a2b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/eyeonwater/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class EyeOnWaterStatistic(CoordinatorEntity, SensorEntity):
_attr_has_entity_name = True
_attr_name = None
_attr_device_class = SensorDeviceClass.WATER
_attr_state_class = SensorStateClass.TOTAL_INCREASING

# state class property is commented out due to a bug in HA, that generates negative statistics values

def __init__(
self,
Expand Down

0 comments on commit e86a2b6

Please sign in to comment.