Add NORMALISED_UNIT to UnitConverter (#78920)

* Add NORMALISED_UNIT to UnitConverter

* Adjust statistics

* Rename
This commit is contained in:
epenet 2022-09-22 08:50:08 +02:00 committed by GitHub
parent f5120872aa
commit 713fb874a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 49 additions and 43 deletions

View file

@ -41,6 +41,8 @@ UNIT_CONVERSION: dict[str, float] = {
VOLUME_CUBIC_FEET: 1 / CUBIC_FOOT_TO_CUBIC_METER,
}
NORMALIZED_UNIT = VOLUME_CUBIC_METERS
def liter_to_gallon(liter: float) -> float:
"""Convert a volume measurement in Liter to Gallon."""