mirror of
https://github.com/home-assistant/core.git
synced 2026-09-12 10:06:22 -05:00
Use UnitOfVolume in bmw_connected_drive (#84228)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""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"
|
||||
ATTRIBUTION = "Data provided by MyBMW"
|
||||
@@ -17,6 +17,6 @@ DATA_HASS_CONFIG = "hass_config"
|
||||
UNIT_MAP = {
|
||||
"KILOMETERS": UnitOfLength.KILOMETERS,
|
||||
"MILES": UnitOfLength.MILES,
|
||||
"LITERS": VOLUME_LITERS,
|
||||
"GALLONS": VOLUME_GALLONS,
|
||||
"LITERS": UnitOfVolume.LITERS,
|
||||
"GALLONS": UnitOfVolume.GALLONS,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user