mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Update xiaomi_aqara.py (#9920)
This commit is contained in:
parent
778c3bb83d
commit
382f9a8f49
@ -67,9 +67,9 @@ class XiaomiSensor(XiaomiDevice):
|
|||||||
if value is None:
|
if value is None:
|
||||||
return False
|
return False
|
||||||
value = float(value)
|
value = float(value)
|
||||||
if self._data_key == 'temperature' and value == 10000:
|
if self._data_key == 'temperature' and (value < -20 or value > 60):
|
||||||
return False
|
return False
|
||||||
elif self._data_key == 'humidity' and value == 0:
|
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
|
||||||
return False
|
return False
|
||||||
elif self._data_key == 'illumination' and value == 0:
|
elif self._data_key == 'illumination' and value == 0:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user