Allow liter for gas sensor device class (#141518)

This commit is contained in:
Arnie97
2025-05-06 16:59:09 +08:00
committed by GitHub
parent f3371bcf39
commit babc183834
8 changed files with 16 additions and 6 deletions

View File

@ -355,6 +355,7 @@ US_CUSTOMARY_SYSTEM = UnitSystem(
("distance", UnitOfLength.MILLIMETERS): UnitOfLength.INCHES,
# Convert non-USCS volumes of gas meters
("gas", UnitOfVolume.CUBIC_METERS): UnitOfVolume.CUBIC_FEET,
("gas", UnitOfVolume.LITERS): UnitOfVolume.CUBIC_FEET,
# Convert non-USCS precipitation
("precipitation", UnitOfLength.CENTIMETERS): UnitOfLength.INCHES,
("precipitation", UnitOfLength.MILLIMETERS): UnitOfLength.INCHES,