mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Round values to one decimal (#11673)
Temperature detection range: -20 - 60 Deg.C ( + / - 0.3 Deg.C ) Humidity detection range: 0 - 100pct RH ( + / - 0.3pct ) Atmospheric pressure detection range: 30 - 110KPa ( + / - 120Pa )
This commit is contained in:
parent
079d4039a1
commit
5546ecd637
@ -77,5 +77,5 @@ class XiaomiSensor(XiaomiDevice):
|
||||
return False
|
||||
elif self._data_key == 'pressure' and value == 0:
|
||||
return False
|
||||
self._state = round(value, 2)
|
||||
self._state = round(value, 1)
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user