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
@@ -52,7 +52,7 @@ class VeraSensor(VeraDevice, Entity):
|
||||
if self.vera_device.category == veraApi.CATEGORY_TEMPERATURE_SENSOR:
|
||||
return self._temperature_units
|
||||
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
||||
return 'lux'
|
||||
return 'lx'
|
||||
elif self.vera_device.category == veraApi.CATEGORY_UV_SENSOR:
|
||||
return 'level'
|
||||
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
||||
|
||||
Reference in new issue
Block a user