Skip to content

Commit cdb2022

Browse files
committed
Don't use self
1 parent 79d7cb6 commit cdb2022

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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 ###

0 commit comments

Comments
 (0)