Fix account balance in fido sensor (#7077)

This commit is contained in:
Thibault Cohen authored and Fabian Affolter committed 2017-04-13 07:42:48 +02:00
1 parent 34cb02177d
commit 9a9342ec3f
1 file changed
+1 -1
+1 -1
View File
@@ -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: