mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix account balance in fido sensor (#7077)
This commit is contained in:
parent
34cb02177d
commit
9a9342ec3f
@ -153,7 +153,7 @@ class FidoSensor(Entity):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data from Fido and update the state."""
|
"""Get the latest data from Fido and update the state."""
|
||||||
self.fido_data.update()
|
self.fido_data.update()
|
||||||
if self._name == 'balance':
|
if self.type == 'balance':
|
||||||
if self.fido_data.data.get(self.type) is not None:
|
if self.fido_data.data.get(self.type) is not None:
|
||||||
self._state = round(self.fido_data.data[self.type], 2)
|
self._state = round(self.fido_data.data[self.type], 2)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user