Skip to content

Commit

Permalink
SensorStateClass pour Energy sensors
Browse files Browse the repository at this point in the history
Fix pour issue #221
  • Loading branch information
ic-dev21 committed Feb 19, 2023
1 parent 18e852a commit e3381d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class EnergySensor(IntegrationSensor):

_attr_device_class = SensorDeviceClass.ENERGY
_attr_native_unit_of_measurement = ENERGY_WATT_HOUR
_attr_state_class = SensorStateClass.MEASUREMENT
_attr_state_class = SensorStateClass.TOTAL_INCREASING
_attr_icon = "mdi:lightning-bolt"

def __init__(self, device):
Expand Down

0 comments on commit e3381d9

Please sign in to comment.