Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
Correct state class as error in log of HA
  • Loading branch information
Tazmanian79 authored Mar 24, 2023
1 parent c6046a3 commit 467c2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ecowater_softener/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class EcowaterSensorEntityDescription(SensorEntityDescription):
name="Water Available",
icon="mdi:water",
device_class=SensorDeviceClass.WATER,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL,
),
EcowaterSensorEntityDescription(
key=WATER_USAGE_TODAY,
Expand Down Expand Up @@ -156,4 +156,4 @@ def device_info(self) -> DeviceInfo:
identifiers={(DOMAIN, self._serialnumber)},
name="Ecowater " + self._serialnumber,
manufacturer="Ecowater",
)
)

0 comments on commit 467c2a6

Please sign in to comment.