mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add unit to 'charging_level_hv' bwm_connected_drive sensor (#26861)
* Update sensor.py Add unit to charging_level_hv, which allows correct graphing in UI * Update sensor.py Add space after #
This commit is contained in:
parent
44082869b4
commit
6fe5582c6a
@ -24,6 +24,8 @@ ATTR_TO_HA_METRIC = {
|
|||||||
"remaining_fuel": ["mdi:gas-station", VOLUME_LITERS],
|
"remaining_fuel": ["mdi:gas-station", VOLUME_LITERS],
|
||||||
"charging_time_remaining": ["mdi:update", "h"],
|
"charging_time_remaining": ["mdi:update", "h"],
|
||||||
"charging_status": ["mdi:battery-charging", None],
|
"charging_status": ["mdi:battery-charging", None],
|
||||||
|
# No icon as this is dealt with directly as a special case in icon()
|
||||||
|
"charging_level_hv": [None, "%"],
|
||||||
}
|
}
|
||||||
|
|
||||||
ATTR_TO_HA_IMPERIAL = {
|
ATTR_TO_HA_IMPERIAL = {
|
||||||
@ -35,6 +37,8 @@ ATTR_TO_HA_IMPERIAL = {
|
|||||||
"remaining_fuel": ["mdi:gas-station", VOLUME_GALLONS],
|
"remaining_fuel": ["mdi:gas-station", VOLUME_GALLONS],
|
||||||
"charging_time_remaining": ["mdi:update", "h"],
|
"charging_time_remaining": ["mdi:update", "h"],
|
||||||
"charging_status": ["mdi:battery-charging", None],
|
"charging_status": ["mdi:battery-charging", None],
|
||||||
|
# No icon as this is dealt with directly as a special case in icon()
|
||||||
|
"charging_level_hv": [None, "%"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user