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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user