mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix monetary state class in tibber (#87274)
state_class=SensorStateClass.TOTAL for monetary data
This commit is contained in:
parent
e00622f137
commit
5422ef239b
@ -191,13 +191,13 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||||||
key="accumulatedReward",
|
key="accumulatedReward",
|
||||||
name="accumulated reward",
|
name="accumulated reward",
|
||||||
device_class=SensorDeviceClass.MONETARY,
|
device_class=SensorDeviceClass.MONETARY,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="accumulatedCost",
|
key="accumulatedCost",
|
||||||
name="accumulated cost",
|
name="accumulated cost",
|
||||||
device_class=SensorDeviceClass.MONETARY,
|
device_class=SensorDeviceClass.MONETARY,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="powerFactor",
|
key="powerFactor",
|
||||||
@ -213,7 +213,7 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||||||
key="month_cost",
|
key="month_cost",
|
||||||
name="Monthly cost",
|
name="Monthly cost",
|
||||||
device_class=SensorDeviceClass.MONETARY,
|
device_class=SensorDeviceClass.MONETARY,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="peak_hour",
|
key="peak_hour",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user