File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def __init__(
4646 websession : aiohttp .ClientSession ,
4747 username : str = DEFAULT_USERNAME ,
4848 port : int = DEFAULT_PORT ,
49- timeout : float = DEFAULT_TIMEOUT ,
49+ timeout : float = DEFAULT_LEGACY_TIMEOUT ,
5050
5151 ) -> None :
5252 """Set the constructor for this class."""
@@ -64,7 +64,6 @@ def __init__(
6464 self ._websession = websession
6565 self ._user = username
6666 self ._port = port
67- self ._timeout = timeout
6867
6968 self ._cooling_present = False
7069 self ._elga = False
@@ -147,7 +146,6 @@ async def connect(self) -> bool:
147146 self .smile_type ,
148147 self ._user ,
149148 self ._port ,
150- self ._timeout ,
151149 ) if not self .smile_legacy else SmileLegacyAPI (
152150 self ._host ,
153151 self ._passwd ,
@@ -168,7 +166,6 @@ async def connect(self) -> bool:
168166 self .smile_zigbee_mac_address ,
169167 self ._user ,
170168 self ._port ,
171- self ._timeout ,
172169 )
173170
174171 # Update all endpoints on first connect
Original file line number Diff line number Diff line change 1010from plugwise .constants import (
1111 APPLIANCES ,
1212 DEFAULT_PORT ,
13- DEFAULT_TIMEOUT ,
13+ DEFAULT_LEGACY_TIMEOUT ,
1414 DEFAULT_USERNAME ,
1515 DOMAIN_OBJECTS ,
1616 LOCATIONS ,
@@ -58,7 +58,7 @@ def __init__(
5858 smile_zigbee_mac_address : str | None ,
5959 username : str = DEFAULT_USERNAME ,
6060 port : int = DEFAULT_PORT ,
61- timeout : float = DEFAULT_TIMEOUT ,
61+ timeout : float = DEFAULT_LEGACY_TIMEOUT ,
6262 ) -> None :
6363 """Set the constructor for this class."""
6464 super ().__init__ (
@@ -77,6 +77,7 @@ def __init__(
7777 self ._opentherm_device = _opentherm_device
7878 self ._stretch_v2 = _stretch_v2
7979 self ._target_smile = _target_smile
80+ self ._timeout = timeout
8081 self .loc_data = loc_data
8182 self .smile_fw_version = smile_fw_version
8283 self .smile_hostname = smile_hostname
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ def __init__(
6767 username : str = DEFAULT_USERNAME ,
6868 port : int = DEFAULT_PORT ,
6969 timeout : float = DEFAULT_TIMEOUT ,
70-
7170 ) -> None :
7271 """Set the constructor for this class."""
7372 super ().__init__ (
@@ -87,6 +86,7 @@ def __init__(
8786 self ._on_off_device = _on_off_device
8887 self ._opentherm_device = _opentherm_device
8988 self ._schedule_old_states = _schedule_old_states
89+ self ._timeout = timeout
9090 self .gateway_id = gateway_id
9191 self .loc_data = loc_data
9292 self .smile_fw_version = smile_fw_version
You can’t perform that action at this time.
0 commit comments