Skip to content

Commit

Permalink
Round off exchange rate (home-assistant#11765)
Browse files Browse the repository at this point in the history
  • Loading branch information
arsaboo authored and fabaff committed Jan 18, 2018
1 parent 216075c commit 2df2f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/sensor/alpha_vantage.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def unit_of_measurement(self):
@property
def state(self):
"""Return the state of the sensor."""
return self.values['5. Exchange Rate']
return round(float(self.values['5. Exchange Rate']), 4)

@property
def icon(self):
Expand Down

0 comments on commit 2df2f35

Please sign in to comment.