Round off exchange rate (#11765)

This commit is contained in:
Alok Saboo 2018-01-18 15:47:46 -05:00 committed by Fabian Affolter
parent 216075cc72
commit 2df2f35423

View File

@ -191,7 +191,7 @@ class AlphaVantageForeignExchange(Entity):
@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):