Sensor device classes (#14282)
* Added light device class, moved device classes to const * Removed unnecessary icons * Replace 'lux' with 'lx' * Fix comment * Changed device_class name
This commit is contained in:
1 parent
ec3ce4c80d
commit
95d27bd1fa
19 files changed
+92
-79
No files matched your search
@@ -166,6 +166,12 @@ EVENT_SERVICE_REMOVED = 'service_removed'
|
||||
EVENT_LOGBOOK_ENTRY = 'logbook_entry'
|
||||
EVENT_THEMES_UPDATED = 'themes_updated'
|
||||
|
||||
# #### DEVICE CLASSES ####
|
||||
DEVICE_CLASS_BATTERY = 'battery'
|
||||
DEVICE_CLASS_HUMIDITY = 'humidity'
|
||||
DEVICE_CLASS_ILLUMINANCE = 'illuminance'
|
||||
DEVICE_CLASS_TEMPERATURE = 'temperature'
|
||||
|
||||
# #### STATES ####
|
||||
STATE_ON = 'on'
|
||||
STATE_OFF = 'off'
|
||||
|
||||
Reference in new issue
Block a user