Skip to content

Commit

Permalink
Comment lack of rounding in AlexaTemperatureSensor (home-assistant#87561
Browse files Browse the repository at this point in the history
)
  • Loading branch information
emontnemery authored Feb 6, 2023
1 parent a090652 commit e4285b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/alexa/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,8 @@ def get_property(self, name):
_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]}


Expand Down

0 comments on commit e4285b0

Please sign in to comment.