mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Centrally define Energy Units (kWh and Wh) (#21719)
* centralize energy units kWh and Wh * lint
This commit is contained in:
committed by
Robbie Trencheny
parent
c0b859d8da
commit
a99d83390e
@@ -325,6 +325,10 @@ ATTR_TEMPERATURE = 'temperature'
|
||||
# Power units
|
||||
POWER_WATT = 'W'
|
||||
|
||||
# Energy units
|
||||
ENERGY_KILO_WATT_HOUR = 'kWh'
|
||||
ENERGY_WATT_HOUR = 'Wh'
|
||||
|
||||
# Temperature units
|
||||
TEMP_CELSIUS = '°C'
|
||||
TEMP_FAHRENHEIT = '°F'
|
||||
|
||||
Reference in New Issue
Block a user