Fix state class in Enphase Envoy (#87397)

* Change total_increasing to total

* As suggested in PR: only Last Seven Days TOTAL
This commit is contained in:
Vincent Knoop Pathuis 2023-02-05 02:06:42 +01:00 committed by Paulus Schoutsen
parent 23e04ba891
commit 93229196d8

View File

@ -33,7 +33,7 @@ SENSORS = (
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(
@ -61,7 +61,7 @@ SENSORS = (
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(