Update xiaomi_aqara.py (#11969)

Sensor can measure temperature below -20, but maybe not so accurate, but no need to discard measurements.
This commit is contained in:
MGWGIT authored and Fabian Affolter committed 2018-01-27 22:01:48 +01:00
1 parent f43234b533
commit 1419005082
1 file changed
+1 -1
@@ -71,7 +71,7 @@ class XiaomiSensor(XiaomiDevice):
value /= 100
elif self._data_key in ['illumination']:
value = max(value - 300, 0)
if self._data_key == 'temperature' and (value < -20 or value > 60):
if self._data_key == 'temperature' and (value < -50 or value > 60):
return False
elif self._data_key == 'humidity' and (value <= 0 or value > 100):
return False