Skip to content

Commit

Permalink
Use total state class, not total_increasing.
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
twhittock committed Mar 30, 2024
1 parent dc2aee1 commit b2309d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eo_mini/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, *args):
key=SensorDeviceClass.ENERGY,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
name="Consumption",
)
super().__init__(*args)
Expand Down

0 comments on commit b2309d1

Please sign in to comment.