Comment lack of rounding in AlexaTemperatureSensor (#87561)

This commit is contained in:
Erik Montnemery 2023-02-06 19:37:14 +01:00 committed by GitHub
parent a090652560
commit e4285b0186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -938,6 +938,8 @@ class AlexaTemperatureSensor(AlexaCapability):
_LOGGER.warning("Invalid temp value %s for %s", temp, self.entity.entity_id)
return None
# Alexa displays temperatures with one decimal digit, we don't need to do
# rounding for presentation here.
return {"value": temp, "scale": API_TEMP_UNITS[unit]}