mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fixed reporting of vera UV sensors (#9838)
This commit is contained in:
@@ -53,6 +53,8 @@ class VeraSensor(VeraDevice, Entity):
|
||||
return self._temperature_units
|
||||
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
||||
return 'lux'
|
||||
elif self.vera_device.category == veraApi.CATEGORY_UV_SENSOR:
|
||||
return 'level'
|
||||
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
||||
return '%'
|
||||
elif self.vera_device.category == veraApi.CATEGORY_POWER_METER:
|
||||
@@ -74,6 +76,8 @@ class VeraSensor(VeraDevice, Entity):
|
||||
|
||||
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
||||
self.current_value = self.vera_device.light
|
||||
elif self.vera_device.category == veraApi.CATEGORY_UV_SENSOR:
|
||||
self.current_value = self.vera_device.light
|
||||
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
||||
self.current_value = self.vera_device.humidity
|
||||
elif self.vera_device.category == veraApi.CATEGORY_SCENE_CONTROLLER:
|
||||
|
Reference in New Issue
Block a user