mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
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:
parent
f60b805fb9
commit
65f660b7d4
@ -33,7 +33,7 @@ SENSORS = (
|
|||||||
key="seven_days_production",
|
key="seven_days_production",
|
||||||
name="Last Seven Days Energy Production",
|
name="Last Seven Days Energy Production",
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
@ -61,7 +61,7 @@ SENSORS = (
|
|||||||
key="seven_days_consumption",
|
key="seven_days_consumption",
|
||||||
name="Last Seven Days Energy Consumption",
|
name="Last Seven Days Energy Consumption",
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user