Skip to content

Commit

Permalink
Add unit to 'charging_level_hv' bwm_connected_drive sensor (#26861)
Browse files Browse the repository at this point in the history
* Update sensor.py

Add unit to charging_level_hv, which allows correct graphing in UI

* Update sensor.py

Add space after #
  • Loading branch information
timmccor authored and MartinHjelmare committed Sep 24, 2019
1 parent 4408286 commit 6fe5582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homeassistant/components/bmw_connected_drive/sensor.py
Expand Up @@ -24,6 +24,8 @@
"remaining_fuel": ["mdi:gas-station", VOLUME_LITERS],
"charging_time_remaining": ["mdi:update", "h"],
"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 = {
Expand All @@ -35,6 +37,8 @@
"remaining_fuel": ["mdi:gas-station", VOLUME_GALLONS],
"charging_time_remaining": ["mdi:update", "h"],
"charging_status": ["mdi:battery-charging", None],
# No icon as this is dealt with directly as a special case in icon()
"charging_level_hv": [None, "%"],
}


Expand Down

0 comments on commit 6fe5582

Please sign in to comment.