Centrally define Watt (#21570)

* centralize Watt definition

* lint
This commit is contained in:
Diogo Gomes 2019-03-02 10:29:59 +00:00 committed by Daniel Høyer Iversen
parent e55ce61100
commit ed2b9e5483
26 changed files with 70 additions and 58 deletions

View file

@ -319,6 +319,9 @@ ATTR_DEVICE_CLASS = 'device_class'
ATTR_TEMPERATURE = 'temperature'
# #### UNITS OF MEASUREMENT ####
# Power units
POWER_WATT = 'W'
# Temperature units
TEMP_CELSIUS = '°C'
TEMP_FAHRENHEIT = '°F'