File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ def __init__(
7070 self ._websession = websession
7171
7272 self ._cooling_present = False
73- self ._data : PlugwiseData = {}
7473 self ._elga = False
7574 self ._is_thermostat = False
7675 self ._on_off_device = False
@@ -314,9 +313,9 @@ def get_all_devices(self) -> None:
314313
315314 async def async_update (self ) -> PlugwiseData :
316315 """Perform an incremental update for updating the various device states."""
317- self . _data = await self ._smile_api .async_update ()
318- self .gateway_id = self . _data .gateway ["gateway_id" ]
319- return self . _data
316+ data : PlugwiseData = await self ._smile_api .async_update ()
317+ self .gateway_id = data .gateway ["gateway_id" ]
318+ return data
320319
321320########################################################################################################
322321### API Set and HA Service-related Functions ###
You can’t perform that action at this time.
0 commit comments