mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Fixed reporting of vera UV sensors (#9838)
This commit is contained in:
parent
3bdb7052b8
commit
4cf300a710
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user