plugwise 1.4.4__py3-none-any.whl → 1.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plugwise/__init__.py +20 -16
- plugwise/helper.py +0 -1
- {plugwise-1.4.4.dist-info → plugwise-1.5.0.dist-info}/METADATA +1 -1
- {plugwise-1.4.4.dist-info → plugwise-1.5.0.dist-info}/RECORD +7 -7
- {plugwise-1.4.4.dist-info → plugwise-1.5.0.dist-info}/LICENSE +0 -0
- {plugwise-1.4.4.dist-info → plugwise-1.5.0.dist-info}/WHEEL +0 -0
- {plugwise-1.4.4.dist-info → plugwise-1.5.0.dist-info}/top_level.txt +0 -0
plugwise/__init__.py
CHANGED
@@ -5,7 +5,9 @@ Plugwise backend module for Home Assistant Core.
|
|
5
5
|
from __future__ import annotations
|
6
6
|
|
7
7
|
from plugwise.constants import (
|
8
|
+
DEFAULT_LEGACY_TIMEOUT,
|
8
9
|
DEFAULT_PORT,
|
10
|
+
DEFAULT_TIMEOUT,
|
9
11
|
DEFAULT_USERNAME,
|
10
12
|
DOMAIN_OBJECTS,
|
11
13
|
LOGGER,
|
@@ -43,26 +45,25 @@ class Smile(SmileComm):
|
|
43
45
|
self,
|
44
46
|
host: str,
|
45
47
|
password: str,
|
46
|
-
timeout: int,
|
47
48
|
websession: aiohttp.ClientSession,
|
48
49
|
port: int = DEFAULT_PORT,
|
49
50
|
username: str = DEFAULT_USERNAME,
|
50
51
|
) -> None:
|
51
52
|
"""Set the constructor for this class."""
|
52
|
-
super().__init__(
|
53
|
-
host,
|
54
|
-
password,
|
55
|
-
port,
|
56
|
-
timeout,
|
57
|
-
username,
|
58
|
-
websession,
|
59
|
-
)
|
60
|
-
|
61
53
|
self._host = host
|
62
|
-
self.
|
54
|
+
self._password = password
|
63
55
|
self._port = port
|
64
|
-
self.
|
56
|
+
self._timeout = DEFAULT_LEGACY_TIMEOUT
|
57
|
+
self._username = username
|
65
58
|
self._websession = websession
|
59
|
+
super().__init__(
|
60
|
+
self._host,
|
61
|
+
self._password,
|
62
|
+
self._port,
|
63
|
+
self._timeout,
|
64
|
+
self._username,
|
65
|
+
self._websession,
|
66
|
+
)
|
66
67
|
|
67
68
|
self._cooling_present = False
|
68
69
|
self._elga = False
|
@@ -126,7 +127,7 @@ class Smile(SmileComm):
|
|
126
127
|
|
127
128
|
self._smile_api = SmileAPI(
|
128
129
|
self._host,
|
129
|
-
self.
|
130
|
+
self._password,
|
130
131
|
self._request,
|
131
132
|
self._websession,
|
132
133
|
self._cooling_present,
|
@@ -147,10 +148,10 @@ class Smile(SmileComm):
|
|
147
148
|
self.smile_name,
|
148
149
|
self.smile_type,
|
149
150
|
self._port,
|
150
|
-
self.
|
151
|
+
self._username,
|
151
152
|
) if not self.smile_legacy else SmileLegacyAPI(
|
152
153
|
self._host,
|
153
|
-
self.
|
154
|
+
self._password,
|
154
155
|
self._request,
|
155
156
|
self._websession,
|
156
157
|
self._is_thermostat,
|
@@ -168,7 +169,7 @@ class Smile(SmileComm):
|
|
168
169
|
self.smile_type,
|
169
170
|
self.smile_zigbee_mac_address,
|
170
171
|
self._port,
|
171
|
-
self.
|
172
|
+
self._username,
|
172
173
|
)
|
173
174
|
|
174
175
|
# Update all endpoints on first connect
|
@@ -212,6 +213,9 @@ class Smile(SmileComm):
|
|
212
213
|
)
|
213
214
|
raise UnsupportedDeviceError
|
214
215
|
|
216
|
+
if not self.smile_legacy:
|
217
|
+
self._timeout = DEFAULT_TIMEOUT
|
218
|
+
|
215
219
|
if self._target_smile in ("smile_open_therm_v2", "smile_thermo_v3"):
|
216
220
|
LOGGER.error(
|
217
221
|
"Your Smile identified as %s needs a firmware update as it's firmware is severely outdated",
|
plugwise/helper.py
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
plugwise/__init__.py,sha256=
|
1
|
+
plugwise/__init__.py,sha256=_AYvIt5rOBksqxp5Lrr7iv11i3mXXJpEQ6Q40pqtOPk,17147
|
2
2
|
plugwise/common.py,sha256=WltDqYlW5D3KqIcm5U_gVY4izLZSk_Uk-MEJl6RDNbs,12592
|
3
3
|
plugwise/constants.py,sha256=kVNrr4zeKFMiGBogVLZ6B925FHAIgy1PY2BBxaT1vkk,16742
|
4
4
|
plugwise/data.py,sha256=I4w3ABqmcj_uSnfxTWPYQH8WP6HaywVMx1aQ-feBdU0,10734
|
5
5
|
plugwise/exceptions.py,sha256=Ce-tO9uNsMB-8FP6VAxBvsHNJ-NIM9F0onUZOdZI4Ys,1110
|
6
|
-
plugwise/helper.py,sha256=
|
6
|
+
plugwise/helper.py,sha256=Q3xaU4FoKnb9w8cOFPSNTuphjfsw2ltOE5alXd_AyGw,44433
|
7
7
|
plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
plugwise/smile.py,sha256=BALKDMY730C-vHCnOadnaM9ezv0iIEnu-V-BsHJRewY,18729
|
9
9
|
plugwise/util.py,sha256=u2qQt6ubQW1ioiDIIzOMnyydxQH5_48_Tbw_vEgCpyg,8161
|
10
10
|
plugwise/legacy/data.py,sha256=DsHR9xgiFDg_Vh_6ZpOskw8ZhNQ3CmwjstI3yiH6MEk,3048
|
11
11
|
plugwise/legacy/helper.py,sha256=HI9EvtTWfzKH5nX4G-YtLpn9Qvi50OLMRRIaN5v7rqU,18358
|
12
12
|
plugwise/legacy/smile.py,sha256=E_Zc1muzylyRMeYYbP4QhGBUQf_KaUUnbPAuIhH8WxY,11208
|
13
|
-
plugwise-1.
|
14
|
-
plugwise-1.
|
15
|
-
plugwise-1.
|
16
|
-
plugwise-1.
|
17
|
-
plugwise-1.
|
13
|
+
plugwise-1.5.0.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
|
14
|
+
plugwise-1.5.0.dist-info/METADATA,sha256=DsAzAxSnQ3WnaixtWgn3C_TvRth72I_nTbyniwx6ocQ,9097
|
15
|
+
plugwise-1.5.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
16
|
+
plugwise-1.5.0.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
|
17
|
+
plugwise-1.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|