From 2f19b56d5e4b1625701ffab70c2671d43b5065cf Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 19 Dec 2022 12:12:48 +0100 Subject: [PATCH] Use UnitOfVolume in bmw_connected_drive (#84228) --- homeassistant/components/bmw_connected_drive/const.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/bmw_connected_drive/const.py b/homeassistant/components/bmw_connected_drive/const.py index cee94e942d5..50634ebdb96 100644 --- a/homeassistant/components/bmw_connected_drive/const.py +++ b/homeassistant/components/bmw_connected_drive/const.py @@ -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, }