Skip to content

Commit

Permalink
state_class_total_increasing to state_class_total
Browse files Browse the repository at this point in the history
STATE_CLASS_TOTAL_INCREASING --> STATE_CLASS_TOTAL
  • Loading branch information
dgomes committed Feb 28, 2023
2 parents a0bba5c + 7cbdd6a commit a5d76d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/erse/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from homeassistant.components.sensor import (
ATTR_LAST_RESET,
SensorDeviceClass,
STATE_CLASS_TOTAL_INCREASING,
STATE_CLASS_TOTAL,
SensorEntity,
)
from homeassistant.components.select.const import (
Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(self, hass, entry_id, tariff, meter_entity):
self.operator = hass.data[DOMAIN][entry_id]

self._attr_device_class = SensorDeviceClass.MONETARY
self._attr_state_class = STATE_CLASS_TOTAL_INCREASING
self._attr_state_class = STATE_CLASS_TOTAL
self._attr_native_unit_of_measurement = (
CURRENCY_EURO
)
Expand Down Expand Up @@ -176,7 +176,7 @@ def __init__(self, hass, entry_id, any_meter) -> None:
self.operator = hass.data[DOMAIN][entry_id]

self._attr_device_class = SensorDeviceClass.MONETARY
self._attr_state_class = STATE_CLASS_TOTAL_INCREASING
self._attr_state_class = STATE_CLASS_TOTAL
self._attr_native_unit_of_measurement = (
CURRENCY_EURO
)
Expand Down

0 comments on commit a5d76d2

Please sign in to comment.