mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Round off exchange rate (#11765)
This commit is contained in:
parent
216075cc72
commit
2df2f35423
@ -191,7 +191,7 @@ class AlphaVantageForeignExchange(Entity):
|
|||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
"""Return the state of the sensor."""
|
"""Return the state of the sensor."""
|
||||||
return self.values['5. Exchange Rate']
|
return round(float(self.values['5. Exchange Rate']), 4)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user