Update xiaomi_aqara.py (#9920)
This commit is contained in:
1 parent
778c3bb83d
commit
382f9a8f49
1 file changed
+2
-2
@@ -67,9 +67,9 @@ class XiaomiSensor(XiaomiDevice):
|
||||
if value is None:
|
||||
return False
|
||||
value = float(value)
|
||||
if self._data_key == 'temperature' and value == 10000:
|
||||
if self._data_key == 'temperature' and (value < -20 or value > 60):
|
||||
return False
|
||||
elif self._data_key == 'humidity' and value == 0:
|
||||
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
|
||||
return False
|
||||
elif self._data_key == 'illumination' and value == 0:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user