Fix account balance in fido sensor (#7077)
This commit is contained in:
parent
34cb02177d
commit
9a9342ec3f
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class FidoSensor(Entity):
|
|||
def update(self):
|
||||
"""Get the latest data from Fido and update the state."""
|
||||
self.fido_data.update()
|
||||
if self._name == 'balance':
|
||||
if self.type == 'balance':
|
||||
if self.fido_data.data.get(self.type) is not None:
|
||||
self._state = round(self.fido_data.data[self.type], 2)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue