Centrally define Energy Units (kWh and Wh) (#21719)
* centralize energy units kWh and Wh * lint
This commit is contained in:
parent
c0b859d8da
commit
a99d83390e
19 changed files with 70 additions and 51 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue