Centrally define Energy Units (kWh and Wh) (#21719)
* centralize energy units kWh and Wh * lint
This commit is contained in:
1 parent
c0b859d8da
commit
a99d83390e
19 files changed
+70
-51
No files matched your search
@@ -1,4 +1,6 @@
|
||||
"""Constants for the Toon integration."""
|
||||
from homeassistant.const import ENERGY_KILO_WATT_HOUR
|
||||
|
||||
DOMAIN = 'toon'
|
||||
|
||||
DATA_TOON = 'toon'
|
||||
@@ -15,7 +17,7 @@ DEFAULT_MIN_TEMP = 6.0
|
||||
|
||||
CURRENCY_EUR = 'EUR'
|
||||
POWER_WATT = 'W'
|
||||
POWER_KWH = 'kWh'
|
||||
POWER_KWH = ENERGY_KILO_WATT_HOUR
|
||||
RATIO_PERCENT = '%'
|
||||
VOLUME_CM3 = 'CM3'
|
||||
VOLUME_M3 = 'M3'
|
||||
Reference in new issue
Block a user