Skip to content

Commit e023ce5

Browse files
committed
Don't overwrite passed-down timeout value
1 parent b1965dd commit e023ce5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plugwise/legacy/smile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from plugwise.constants import (
1111
APPLIANCES,
12-
DEFAULT_LEGACY_TIMEOUT,
1312
DEFAULT_PORT,
1413
DEFAULT_USERNAME,
1514
DOMAIN_OBJECTS,
@@ -58,7 +57,7 @@ def __init__(
5857
smile_zigbee_mac_address: str | None,
5958
username: str = DEFAULT_USERNAME,
6059
port: int = DEFAULT_PORT,
61-
timeout: float = DEFAULT_LEGACY_TIMEOUT,
60+
timeout: float,
6261
) -> None:
6362
"""Set the constructor for this class."""
6463
super().__init__(

plugwise/smile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
ANNA,
1313
APPLIANCES,
1414
DEFAULT_PORT,
15-
DEFAULT_TIMEOUT,
1615
DEFAULT_USERNAME,
1716
DOMAIN_OBJECTS,
1817
GATEWAY_REBOOT,
@@ -66,7 +65,7 @@ def __init__(
6665
smile_type: str,
6766
username: str = DEFAULT_USERNAME,
6867
port: int = DEFAULT_PORT,
69-
timeout: float = DEFAULT_TIMEOUT,
68+
timeout: float,
7069
) -> None:
7170
"""Set the constructor for this class."""
7271
super().__init__(

0 commit comments

Comments
 (0)