From bbecf6ca37dd326891ef2a9426cca06d5365b74f Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 21 Dec 2022 09:28:49 +0100 Subject: [PATCH] Introduce unit enums for volume flow rate (#84310) --- homeassistant/const.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/const.py b/homeassistant/const.py index bc47106f912..8136a0f038d 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -751,9 +751,19 @@ VOLUME_GALLONS: Final = "gal" VOLUME_FLUID_OUNCE: Final = "fl. oz." """Deprecated: please use UnitOfVolume.FLUID_OUNCES""" + # Volume Flow Rate units +class UnitOfVolumeFlowRate(StrEnum): + """Volume flow rate units.""" + + CUBIC_METERS_PER_HOUR = "m³/h" + CUBIC_FEET_PER_MINUTE = "ft³/m" + + VOLUME_FLOW_RATE_CUBIC_METERS_PER_HOUR: Final = "m³/h" +"""Deprecated: please use UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR""" VOLUME_FLOW_RATE_CUBIC_FEET_PER_MINUTE: Final = "ft³/m" +"""Deprecated: please use UnitOfVolumeFlowRate.CUBIC_FEET_PER_MINUTE""" # Area units AREA_SQUARE_METERS: Final = "m²"