Skip to content

Commit 088441e

Browse files
CoMPaTechbouwew
authored andcommitted
Dedeplicate and init correctly
1 parent 213bfeb commit 088441e

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

plugwise/.helper.py.swp

16 KB
Binary file not shown.

plugwise/smile.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -274,34 +274,10 @@ def __init__(
274274
timeout,
275275
websession,
276276
)
277+
SmileData.__init__(self)
277278

278-
self._on_off_device = False
279-
self._ot_device = False
280-
self._appliances = None
281-
self._appl_data = None
282-
self._cooling_present = False
283-
self._domain_objects = None
284-
self._heater_id = None
285-
self._home_location = None
286-
self._last_active = {}
287-
self._locations = None
288-
self._modules = None
289279
self._notifications = {}
290-
self._outdoor_temp = None
291-
self._sm_thermostat = None
292-
self._smile_legacy = False
293-
self._stretch_v2 = False
294-
self._stretch_v3 = False
295-
self._thermo_locs = None
296-
297-
self.cooling_active = False
298-
self.gateway_id = None
299-
self.gw_data = {}
300-
self.gw_devices = {}
301280
self.smile_hostname = None
302-
self.smile_name = None
303-
self.smile_type = None
304-
self.smile_version = ()
305281

306282
async def connect(self):
307283
"""Connect to Plugwise device and determine its name, type and version."""

0 commit comments

Comments
 (0)