mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix envoy last_seven_days_energy* state class (#84528)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
b207790177
commit
b6a0ac6f0a
@ -33,7 +33,6 @@ 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,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
@ -61,7 +60,6 @@ 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,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user