mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
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:
parent
f43234b533
commit
1419005082
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user