mirror of https://github.com/home-assistant/core
fix gateway illumination sensor value (#10045)
This commit is contained in:
parent
4e7cc110d9
commit
ccde371a9d
|
@ -75,8 +75,6 @@ class XiaomiSensor(XiaomiDevice):
|
||||||
return False
|
return False
|
||||||
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
|
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
|
||||||
return False
|
return False
|
||||||
elif self._data_key == 'illumination' and value == 0:
|
|
||||||
return False
|
|
||||||
elif self._data_key == 'pressure' and value == 0:
|
elif self._data_key == 'pressure' and value == 0:
|
||||||
return False
|
return False
|
||||||
self._state = round(value, 2)
|
self._state = round(value, 2)
|
||||||
|
|
Loading…
Reference in New Issue