Skip to content

Commit 72bc250

Browse files
committed
Reorder
1 parent a4e93c8 commit 72bc250

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

plugwise/legacy/smile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def __init__(
6161
username: str = DEFAULT_USERNAME,
6262
) -> None:
6363
"""Set the constructor for this class."""
64-
SmileLegacyData.__init__(self)
65-
6664
self._cooling_present = False
6765
self._is_thermostat = _is_thermostat
6866
self._loc_data = _loc_data
@@ -79,6 +77,7 @@ def __init__(
7977
self.smile_name = smile_name
8078
self.smile_type = smile_type
8179
self.smile_zigbee_mac_address = smile_zigbee_mac_address
80+
SmileLegacyData.__init__(self)
8281

8382
self._previous_day_number: str = "0"
8483

plugwise/smile.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def __init__(
7070
username: str = DEFAULT_USERNAME,
7171
) -> None:
7272
"""Set the constructor for this class."""
73-
SmileData.__init__(self)
74-
73+
self._cooling_enabled = False
7574
self._cooling_present = _cooling_present
7675
self._elga = _elga
76+
self._heater_id: str
7777
self._is_thermostat = _is_thermostat
7878
self._last_active = _last_active
7979
self._loc_data = _loc_data
@@ -90,9 +90,8 @@ def __init__(
9090
self.smile_model_id = smile_model_id
9191
self.smile_name = smile_name
9292
self.smile_type = smile_type
93+
SmileData.__init__(self)
9394

94-
self._heater_id: str
95-
self._cooling_enabled = False
9695

9796
async def full_xml_update(self) -> None:
9897
"""Perform a first fetch of all XML data, needed for initialization."""

0 commit comments

Comments
 (0)