Introduce unit enums for volume flow rate (#84310)

This commit is contained in:
epenet 2022-12-21 09:28:49 +01:00 committed by GitHub
parent cb3ab9b51e
commit bbecf6ca37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = "" AREA_SQUARE_METERS: Final = ""