diff --git a/findmy/scanner/scanner.py b/findmy/scanner/scanner.py index 810abbf..c4bdd87 100644 --- a/findmy/scanner/scanner.py +++ b/findmy/scanner/scanner.py @@ -393,7 +393,8 @@ async def scan_for( yield device time_left = stop_at - time.time() - except (asyncio.CancelledError, asyncio.TimeoutError): # timeout reached + except asyncio.TimeoutError: # timeout reached + self._device_fut = self._loop.create_future() return finally: await self._stop_scan()