Tibber, add device class monetary to accumulated cost (#52259)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
This commit is contained in:
parent
81ca5236bf
commit
1676bf220f
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,7 @@ import aiohttp
|
|||
from homeassistant.components.sensor import (
|
||||
DEVICE_CLASS_CURRENT,
|
||||
DEVICE_CLASS_ENERGY,
|
||||
DEVICE_CLASS_MONETARY,
|
||||
DEVICE_CLASS_POWER,
|
||||
DEVICE_CLASS_POWER_FACTOR,
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
|
@ -128,7 +129,12 @@ RT_SENSOR_MAP = {
|
|||
SIGNAL_STRENGTH_DECIBELS,
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
],
|
||||
"accumulatedCost": ["accumulated cost", None, None, STATE_CLASS_MEASUREMENT],
|
||||
"accumulatedCost": [
|
||||
"accumulated cost",
|
||||
DEVICE_CLASS_MONETARY,
|
||||
None,
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
],
|
||||
"powerFactor": [
|
||||
"power factor",
|
||||
DEVICE_CLASS_POWER_FACTOR,
|
||||
|
|
Loading…
Add table
Reference in a new issue