Fix hydroquebec (#6574)

This commit is contained in:
Thibault Cohen 2017-03-13 13:54:23 -04:00 committed by Pascal Vizeli
parent 5722cf53bf
commit 253dee8e4d

View File

@ -149,6 +149,7 @@ class HydroQuebecSensor(Entity):
def update(self):
"""Get the latest data from Hydroquebec and update the state."""
self.hydroquebec_data.update()
if self.type in self.hydroquebec_data.data:
self._state = round(self.hydroquebec_data.data[self.type], 2)