Centrally define Watt (#21570)

* centralize Watt definition

* lint
This commit is contained in:
Diogo Gomes authored and Daniel Høyer Iversen committed 2019-03-02 11:29:59 +01:00
1 parent e55ce61100
commit ed2b9e5483
26 files changed
+70 -58

No files matched your search

+3
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'