Fix Tibber sensors state class (#117085)
* set correct state classes * revert bool to pass mypy locally
This commit is contained in:
parent
a7ca36e88c
commit
658c1f3d97
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||
translation_key="accumulated_consumption",
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="accumulatedConsumptionLastHour",
|
||||
|
@ -150,7 +150,7 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||
translation_key="accumulated_production",
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="accumulatedProductionLastHour",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue