1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Round Awair sensor values (#24093)

* Round sensor values

* Add code owner

* Update code owners

* Fix tests
This commit is contained in:
Jef D
2019-06-01 17:03:41 +02:00
committed by Daniel Høyer Iversen
parent 276ab191b5
commit 278b9d0f71
4 changed files with 7 additions and 4 deletions

View File

@@ -219,6 +219,6 @@ class AwairData:
# The air_data_latest call only returns one item, so this should
# be safe to only process one entry.
for sensor in resp[0][ATTR_SENSORS]:
self.data[sensor[ATTR_COMPONENT]] = sensor[ATTR_VALUE]
self.data[sensor[ATTR_COMPONENT]] = round(sensor[ATTR_VALUE], 1)
_LOGGER.debug("Got Awair Data for %s: %s", self._uuid, self.data)