mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Use UnitOfVolume in bmw_connected_drive (#84228)
This commit is contained in:
parent
0f40a73bb4
commit
2f19b56d5e
@ -1,5 +1,5 @@
|
|||||||
"""Const file for the MyBMW integration."""
|
"""Const file for the MyBMW integration."""
|
||||||
from homeassistant.const import VOLUME_GALLONS, VOLUME_LITERS, UnitOfLength
|
from homeassistant.const import UnitOfLength, UnitOfVolume
|
||||||
|
|
||||||
DOMAIN = "bmw_connected_drive"
|
DOMAIN = "bmw_connected_drive"
|
||||||
ATTRIBUTION = "Data provided by MyBMW"
|
ATTRIBUTION = "Data provided by MyBMW"
|
||||||
@ -17,6 +17,6 @@ DATA_HASS_CONFIG = "hass_config"
|
|||||||
UNIT_MAP = {
|
UNIT_MAP = {
|
||||||
"KILOMETERS": UnitOfLength.KILOMETERS,
|
"KILOMETERS": UnitOfLength.KILOMETERS,
|
||||||
"MILES": UnitOfLength.MILES,
|
"MILES": UnitOfLength.MILES,
|
||||||
"LITERS": VOLUME_LITERS,
|
"LITERS": UnitOfVolume.LITERS,
|
||||||
"GALLONS": VOLUME_GALLONS,
|
"GALLONS": UnitOfVolume.GALLONS,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user