mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix hydroquebec (#6574)
This commit is contained in:
committed by
Pascal Vizeli
parent
5722cf53bf
commit
253dee8e4d
@@ -149,6 +149,7 @@ class HydroQuebecSensor(Entity):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data from Hydroquebec and update the state."""
|
"""Get the latest data from Hydroquebec and update the state."""
|
||||||
self.hydroquebec_data.update()
|
self.hydroquebec_data.update()
|
||||||
|
if self.type in self.hydroquebec_data.data:
|
||||||
self._state = round(self.hydroquebec_data.data[self.type], 2)
|
self._state = round(self.hydroquebec_data.data[self.type], 2)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user