File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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."""
You can’t perform that action at this time.
0 commit comments