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:
committed by
Daniel Høyer Iversen
parent
276ab191b5
commit
278b9d0f71
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user