Skip to content

Commit 2a90f25

Browse files
committed
Make _cooling_enabled for Smile class
1 parent 5b8baf2 commit 2a90f25

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def __init__(
6565
self._websession,
6666
)
6767

68+
self._cooling_enabled = False
6869
self._cooling_present = False
6970
self._elga = False
7071
self._is_thermostat = False
@@ -130,6 +131,7 @@ async def connect(self) -> Version | None:
130131
self._password,
131132
self._request,
132133
self._websession,
134+
self._cooling_enabled,
133135
self._cooling_present,
134136
self._elga,
135137
self._is_thermostat,

plugwise/smile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def __init__(
4949
password: str,
5050
request: Callable[..., Awaitable[Any]],
5151
websession: aiohttp.ClientSession,
52+
_cooling_enabled: bool,
5253
_cooling_present: bool,
5354
_elga: bool,
5455
_is_thermostat: bool,
@@ -71,7 +72,7 @@ def __init__(
7172
username: str = DEFAULT_USERNAME,
7273
) -> None:
7374
"""Set the constructor for this class."""
74-
self._cooling_enabled = False
75+
self._cooling_enabled = _cooling_enabled
7576
self._cooling_present = _cooling_present
7677
self._elga = _elga
7778
self._heater_id: str

0 commit comments

Comments
 (0)