Skip to content

Commit c5ea05f

Browse files
committed
fix: lower local timeout
1 parent ab78435 commit c5ea05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/devices/local_channel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
_LOGGER = logging.getLogger(__name__)
1818
_PORT = 58867
19-
_TIMEOUT = 10.0
19+
_TIMEOUT = 5.0
2020

2121

2222
@dataclass
@@ -114,7 +114,7 @@ async def _do_hello(self, local_protocol_version: LocalProtocolVersion) -> Local
114114

115115
async def _hello(self):
116116
"""Send hello to the device to negotiate protocol."""
117-
attempt_versions = [LocalProtocolVersion.V1, LocalProtocolVersion.L01]
117+
attempt_versions = [LocalProtocolVersion.L01, LocalProtocolVersion.L01]
118118
if self._local_protocol_version:
119119
# Sort to try the preferred version first
120120
attempt_versions.sort(key=lambda v: v != self._local_protocol_version)

0 commit comments

Comments
 (0)