Skip to content

Commit

Permalink
state_class sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
ashionky committed Feb 5, 2025
1 parent 1511282 commit 70a5449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/refoss_lan/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class RefossSensorEntityDescription(SensorEntityDescription):
key="energy",
translation_key="this_month_energy",
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL,
state_class=SensorStateClass.TOTAL_INCREASING,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
suggested_display_precision=2,
subkey="mConsume",
Expand All @@ -154,7 +154,7 @@ class RefossSensorEntityDescription(SensorEntityDescription):
key="energy_returned",
translation_key="this_month_energy_returned",
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL,
state_class=SensorStateClass.TOTAL_INCREASING,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
suggested_display_precision=2,
subkey="mConsume",
Expand Down

0 comments on commit 70a5449

Please sign in to comment.