1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Energy distance units (#136933)

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
Jakob Schlyter
2025-01-31 15:22:25 +01:00
committed by GitHub
parent 21ffcf853b
commit 84ae476b67
10 changed files with 117 additions and 0 deletions

View File

@@ -632,6 +632,15 @@ class UnitOfEnergy(StrEnum):
GIGA_CALORIE = "Gcal"
# Energy Distance units
class UnitOfEnergyDistance(StrEnum):
"""Energy Distance units."""
KILO_WATT_HOUR_PER_100_KM = "kWh/100km"
MILES_PER_KILO_WATT_HOUR = "mi/kWh"
KM_PER_KILO_WATT_HOUR = "km/kWh"
# Electric_current units
class UnitOfElectricCurrent(StrEnum):
"""Electric current units."""