mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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
|
return self._temperature_units
|
||||||
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
||||||
return 'lux'
|
return 'lux'
|
||||||
|
elif self.vera_device.category == veraApi.CATEGORY_UV_SENSOR:
|
||||||
|
return 'level'
|
||||||
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
||||||
return '%'
|
return '%'
|
||||||
elif self.vera_device.category == veraApi.CATEGORY_POWER_METER:
|
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:
|
elif self.vera_device.category == veraApi.CATEGORY_LIGHT_SENSOR:
|
||||||
self.current_value = self.vera_device.light
|
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:
|
elif self.vera_device.category == veraApi.CATEGORY_HUMIDITY_SENSOR:
|
||||||
self.current_value = self.vera_device.humidity
|
self.current_value = self.vera_device.humidity
|
||||||
elif self.vera_device.category == veraApi.CATEGORY_SCENE_CONTROLLER:
|
elif self.vera_device.category == veraApi.CATEGORY_SCENE_CONTROLLER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user