mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Introduce unit enums for volume flow rate (#84310)
This commit is contained in:
parent
cb3ab9b51e
commit
bbecf6ca37
@ -751,9 +751,19 @@ VOLUME_GALLONS: Final = "gal"
|
|||||||
VOLUME_FLUID_OUNCE: Final = "fl. oz."
|
VOLUME_FLUID_OUNCE: Final = "fl. oz."
|
||||||
"""Deprecated: please use UnitOfVolume.FLUID_OUNCES"""
|
"""Deprecated: please use UnitOfVolume.FLUID_OUNCES"""
|
||||||
|
|
||||||
|
|
||||||
# Volume Flow Rate units
|
# 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"
|
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"
|
VOLUME_FLOW_RATE_CUBIC_FEET_PER_MINUTE: Final = "ft³/m"
|
||||||
|
"""Deprecated: please use UnitOfVolumeFlowRate.CUBIC_FEET_PER_MINUTE"""
|
||||||
|
|
||||||
# Area units
|
# Area units
|
||||||
AREA_SQUARE_METERS: Final = "m²"
|
AREA_SQUARE_METERS: Final = "m²"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user