mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
fix gateway illumination sensor value (#10045)
This commit is contained in:
committed by
Fabian Affolter
parent
106bf467f8
commit
48c86e07fa
@@ -75,8 +75,6 @@ class XiaomiSensor(XiaomiDevice):
|
||||
return False
|
||||
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
|
||||
return False
|
||||
elif self._data_key == 'illumination' and value == 0:
|
||||
return False
|
||||
elif self._data_key == 'pressure' and value == 0:
|
||||
return False
|
||||
self._state = round(value, 2)
|
||||
|
Reference in New Issue
Block a user