Skip to content

Commit 2bac077

Browse files
committed
chore: fix lint errors
1 parent 45bfe1b commit 2bac077

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roborock/devices/device.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def start_connect(self) -> None:
114114
This will give a moment for the first connection attempt to start so
115115
that the device will have connections established -- however, this will
116116
never directly fail.
117-
117+
118118
If the connection fails, it will retry in the background with
119119
exponential backoff.
120120
@@ -148,12 +148,11 @@ async def connect_loop() -> None:
148148
start_attempt.set()
149149

150150
self._connect_task = asyncio.create_task(connect_loop())
151-
151+
152152
try:
153153
await asyncio.wait_for(start_attempt.wait(), timeout=START_ATTEMPT_TIMEOUT.total_seconds())
154-
except asyncio.Timeout:
154+
except TimeoutError:
155155
_LOGGER.debug("Initial connection attempt to device %s is taking longer than expected", self.name)
156-
157156

158157
async def connect(self) -> None:
159158
"""Connect to the device using the appropriate protocol channel."""

0 commit comments

Comments
 (0)