Round off exchange rate (#11765)
This commit is contained in:
1 parent
216075cc72
commit
2df2f35423
1 file changed
+1
-1
@@ -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