From 9a9342ec3f0d69e24ec5b6d9fc8c21787de2a34f Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Thu, 13 Apr 2017 01:42:48 -0400 Subject: [PATCH] Fix account balance in fido sensor (#7077) --- homeassistant/components/sensor/fido.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/fido.py b/homeassistant/components/sensor/fido.py index 70876cca1c2..5deb00db67b 100644 --- a/homeassistant/components/sensor/fido.py +++ b/homeassistant/components/sensor/fido.py @@ -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: