Centrally define Energy Units (kWh and Wh) (#21719)

* centralize energy units kWh and Wh

* lint
This commit is contained in:
Diogo Gomes authored and Robbie Trencheny committed 2019-03-12 18:46:41 -07:00
1 parent c0b859d8da
commit a99d83390e
19 files changed
+70 -51

No files matched your search

+3 -1
View File
@@ -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'