Skip to content

Commit

Permalink
Switch to TOTAL_INCREASING
Browse files Browse the repository at this point in the history
  • Loading branch information
raman325 committed May 31, 2023
1 parent d76b76d commit 8aed69f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/zwave_js/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
ENTITY_DESC_KEY_ENERGY_PRODUCTION_TODAY,
name="Energy production today",
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL,
state_class=SensorStateClass.TOTAL_INCREASING,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
),
(
Expand Down
2 changes: 1 addition & 1 deletion tests/components/zwave_js/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ async def test_statistics_sensors(
"attributes": {
"unit_of_measurement": UnitOfEnergy.WATT_HOUR,
"device_class": SensorDeviceClass.ENERGY,
"state_class": SensorStateClass.TOTAL,
"state_class": SensorStateClass.TOTAL_INCREASING,
},
},
"energy_production_time": {
Expand Down

0 comments on commit 8aed69f

Please sign in to comment.