plugwise 0.38.1__py3-none-any.whl → 0.38.2__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 +7 -3
- plugwise/constants.py +2 -1
- plugwise/legacy/smile.py +2 -2
- plugwise/smile.py +2 -3
- {plugwise-0.38.1.dist-info → plugwise-0.38.2.dist-info}/METADATA +1 -1
- {plugwise-0.38.1.dist-info → plugwise-0.38.2.dist-info}/RECORD +9 -9
- {plugwise-0.38.1.dist-info → plugwise-0.38.2.dist-info}/LICENSE +0 -0
- {plugwise-0.38.1.dist-info → plugwise-0.38.2.dist-info}/WHEEL +0 -0
- {plugwise-0.38.1.dist-info → plugwise-0.38.2.dist-info}/top_level.txt +0 -0
plugwise/__init__.py
CHANGED
@@ -5,6 +5,7 @@ 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,
|
9
10
|
DEFAULT_TIMEOUT,
|
10
11
|
DEFAULT_USERNAME,
|
@@ -46,7 +47,7 @@ class Smile(SmileComm):
|
|
46
47
|
websession: aiohttp.ClientSession,
|
47
48
|
username: str = DEFAULT_USERNAME,
|
48
49
|
port: int = DEFAULT_PORT,
|
49
|
-
timeout: float =
|
50
|
+
timeout: float = DEFAULT_LEGACY_TIMEOUT,
|
50
51
|
|
51
52
|
) -> None:
|
52
53
|
"""Set the constructor for this class."""
|
@@ -128,6 +129,7 @@ class Smile(SmileComm):
|
|
128
129
|
self._smile_api = SmileAPI(
|
129
130
|
self._host,
|
130
131
|
self._passwd,
|
132
|
+
self._timeout,
|
131
133
|
self._websession,
|
132
134
|
self._cooling_present,
|
133
135
|
self._elga,
|
@@ -147,10 +149,10 @@ class Smile(SmileComm):
|
|
147
149
|
self.smile_type,
|
148
150
|
self._user,
|
149
151
|
self._port,
|
150
|
-
self._timeout,
|
151
152
|
) if not self.smile_legacy else SmileLegacyAPI(
|
152
153
|
self._host,
|
153
154
|
self._passwd,
|
155
|
+
self._timeout,
|
154
156
|
self._websession,
|
155
157
|
self._is_thermostat,
|
156
158
|
self._on_off_device,
|
@@ -168,7 +170,6 @@ class Smile(SmileComm):
|
|
168
170
|
self.smile_zigbee_mac_address,
|
169
171
|
self._user,
|
170
172
|
self._port,
|
171
|
-
self._timeout,
|
172
173
|
)
|
173
174
|
|
174
175
|
# Update all endpoints on first connect
|
@@ -192,6 +193,9 @@ class Smile(SmileComm):
|
|
192
193
|
else:
|
193
194
|
model = await self._smile_detect_legacy(result, dsmrmain, model)
|
194
195
|
|
196
|
+
if not self.smile_legacy:
|
197
|
+
self._timeout = DEFAULT_TIMEOUT
|
198
|
+
|
195
199
|
if model == "Unknown" or self.smile_fw_version is None: # pragma: no cover
|
196
200
|
# Corner case check
|
197
201
|
LOGGER.error(
|
plugwise/constants.py
CHANGED
@@ -32,7 +32,8 @@ VOLUME_CUBIC_METERS_PER_HOUR: Final = "m³/h"
|
|
32
32
|
|
33
33
|
ADAM: Final = "Adam"
|
34
34
|
ANNA: Final = "Smile Anna"
|
35
|
-
DEFAULT_TIMEOUT: Final =
|
35
|
+
DEFAULT_TIMEOUT: Final = 10
|
36
|
+
DEFAULT_LEGACY_TIMEOUT: Final = 30
|
36
37
|
DEFAULT_USERNAME: Final = "smile"
|
37
38
|
DEFAULT_PORT: Final = 80
|
38
39
|
DEFAULT_PW_MAX: Final = 30.0
|
plugwise/legacy/smile.py
CHANGED
@@ -10,7 +10,6 @@ from typing import Any
|
|
10
10
|
from plugwise.constants import (
|
11
11
|
APPLIANCES,
|
12
12
|
DEFAULT_PORT,
|
13
|
-
DEFAULT_TIMEOUT,
|
14
13
|
DEFAULT_USERNAME,
|
15
14
|
DOMAIN_OBJECTS,
|
16
15
|
LOCATIONS,
|
@@ -41,6 +40,7 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
41
40
|
self,
|
42
41
|
host: str,
|
43
42
|
password: str,
|
43
|
+
timeout: float,
|
44
44
|
websession: aiohttp.ClientSession,
|
45
45
|
_is_thermostat: bool,
|
46
46
|
_on_off_device: bool,
|
@@ -58,7 +58,6 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
58
58
|
smile_zigbee_mac_address: str | None,
|
59
59
|
username: str = DEFAULT_USERNAME,
|
60
60
|
port: int = DEFAULT_PORT,
|
61
|
-
timeout: float = DEFAULT_TIMEOUT,
|
62
61
|
) -> None:
|
63
62
|
"""Set the constructor for this class."""
|
64
63
|
super().__init__(
|
@@ -77,6 +76,7 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
77
76
|
self._opentherm_device = _opentherm_device
|
78
77
|
self._stretch_v2 = _stretch_v2
|
79
78
|
self._target_smile = _target_smile
|
79
|
+
self._timeout = timeout
|
80
80
|
self.loc_data = loc_data
|
81
81
|
self.smile_fw_version = smile_fw_version
|
82
82
|
self.smile_hostname = smile_hostname
|
plugwise/smile.py
CHANGED
@@ -12,7 +12,6 @@ from plugwise.constants import (
|
|
12
12
|
ANNA,
|
13
13
|
APPLIANCES,
|
14
14
|
DEFAULT_PORT,
|
15
|
-
DEFAULT_TIMEOUT,
|
16
15
|
DEFAULT_USERNAME,
|
17
16
|
DOMAIN_OBJECTS,
|
18
17
|
GATEWAY_REBOOT,
|
@@ -47,6 +46,7 @@ class SmileAPI(SmileComm, SmileData):
|
|
47
46
|
self,
|
48
47
|
host: str,
|
49
48
|
password: str,
|
49
|
+
timeout: float,
|
50
50
|
websession: aiohttp.ClientSession,
|
51
51
|
_cooling_present: bool,
|
52
52
|
_elga: bool,
|
@@ -66,8 +66,6 @@ class SmileAPI(SmileComm, SmileData):
|
|
66
66
|
smile_type: str,
|
67
67
|
username: str = DEFAULT_USERNAME,
|
68
68
|
port: int = DEFAULT_PORT,
|
69
|
-
timeout: float = DEFAULT_TIMEOUT,
|
70
|
-
|
71
69
|
) -> None:
|
72
70
|
"""Set the constructor for this class."""
|
73
71
|
super().__init__(
|
@@ -87,6 +85,7 @@ class SmileAPI(SmileComm, SmileData):
|
|
87
85
|
self._on_off_device = _on_off_device
|
88
86
|
self._opentherm_device = _opentherm_device
|
89
87
|
self._schedule_old_states = _schedule_old_states
|
88
|
+
self._timeout = timeout
|
90
89
|
self.gateway_id = gateway_id
|
91
90
|
self.loc_data = loc_data
|
92
91
|
self.smile_fw_version = smile_fw_version
|
@@ -1,17 +1,17 @@
|
|
1
|
-
plugwise/__init__.py,sha256=
|
1
|
+
plugwise/__init__.py,sha256=EXiTp-N8kQqOUAaczDbULS176NwA2C1FcfWiKkBzNdI,16887
|
2
2
|
plugwise/common.py,sha256=P4sUYzgVcFsIR2DmQxeVeOiZvFZWpZXgwHA3XRc1Sx0,12538
|
3
|
-
plugwise/constants.py,sha256=
|
3
|
+
plugwise/constants.py,sha256=Y8DeuZSK2_2ZDPMwFtlGkNZKvqaE-WYl-s4fZsj4XZ4,16681
|
4
4
|
plugwise/data.py,sha256=HA3OoLrTad4ytns6_rfygwu8eGfopHJBNADGs-hvaQk,9054
|
5
5
|
plugwise/exceptions.py,sha256=Ce-tO9uNsMB-8FP6VAxBvsHNJ-NIM9F0onUZOdZI4Ys,1110
|
6
6
|
plugwise/helper.py,sha256=NFcxVtY9qdM2TtBbGs-_eh7xKO6G_M3Q4W9bXUCpH84,43861
|
7
7
|
plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
plugwise/smile.py,sha256=
|
8
|
+
plugwise/smile.py,sha256=UT983eZeeD6JjsgOTDWmzvCfCosYilS5ojBHf6m53_U,18609
|
9
9
|
plugwise/util.py,sha256=9ld46KJHWFze2eUrVSgUYn0g3zNerlpboM0iUa0H3ak,7830
|
10
10
|
plugwise/legacy/data.py,sha256=DsHR9xgiFDg_Vh_6ZpOskw8ZhNQ3CmwjstI3yiH6MEk,3048
|
11
11
|
plugwise/legacy/helper.py,sha256=6-tYQMEXepE5rec-hn6lt2EeknADI3J8UFuBSLgu8dk,17878
|
12
|
-
plugwise/legacy/smile.py,sha256=
|
13
|
-
plugwise-0.38.
|
14
|
-
plugwise-0.38.
|
15
|
-
plugwise-0.38.
|
16
|
-
plugwise-0.38.
|
17
|
-
plugwise-0.38.
|
12
|
+
plugwise/legacy/smile.py,sha256=7oaPZuvxrYRvoA8qWFvtWSwQRFfQl1XXpPjWXn3_xFs,11314
|
13
|
+
plugwise-0.38.2.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
|
14
|
+
plugwise-0.38.2.dist-info/METADATA,sha256=yLwO_H9Xd5lEIYX4ImZnm0l0yGxoZN47XtVsdIpsbj4,9098
|
15
|
+
plugwise-0.38.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
16
|
+
plugwise-0.38.2.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
|
17
|
+
plugwise-0.38.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|