From 1419005082fb328b56a856aa48331e6a4cd08602 Mon Sep 17 00:00:00 2001 From: MGWGIT Date: Sun, 28 Jan 2018 00:01:48 +0300 Subject: [PATCH] Update xiaomi_aqara.py (#11969) Sensor can measure temperature below -20, but maybe not so accurate, but no need to discard measurements. --- homeassistant/components/sensor/xiaomi_aqara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/xiaomi_aqara.py b/homeassistant/components/sensor/xiaomi_aqara.py index f5c20fa5a1c..c2498d88822 100644 --- a/homeassistant/components/sensor/xiaomi_aqara.py +++ b/homeassistant/components/sensor/xiaomi_aqara.py @@ -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