mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
Round off exchange rate (#11765)
This commit is contained in:
committed by
Fabian Affolter
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):
|
||||
|
Reference in New Issue
Block a user