Skip to content

Commit

Permalink
Fix state class in Enphase Envoy (#87397)
Browse files Browse the repository at this point in the history
* Change total_increasing to total

* As suggested in PR: only Last Seven Days TOTAL
  • Loading branch information
vpathuis committed Feb 5, 2023
1 parent f60b805 commit 65f660b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/enphase_envoy/const.py
Expand Up @@ -33,7 +33,7 @@
key="seven_days_production",
name="Last Seven Days Energy Production",
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
Expand Down Expand Up @@ -61,7 +61,7 @@
key="seven_days_consumption",
name="Last Seven Days Energy Consumption",
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
Expand Down

0 comments on commit 65f660b

Please sign in to comment.