mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Round off exchange rate (#11765)
This commit is contained in:
parent
216075cc72
commit
2df2f35423
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user