diff --git a/src/bluetooth_auto_recovery/recover.py b/src/bluetooth_auto_recovery/recover.py index 895f95a..d10f922 100644 --- a/src/bluetooth_auto_recovery/recover.py +++ b/src/bluetooth_auto_recovery/recover.py @@ -150,7 +150,7 @@ async def send(self, *args: Any) -> btmgmt_protocol.Response: self.future = asyncio.Future() assert self.transport is not None # nosec self.transport.write(full_pkt) - with asyncio_timeout(self.timeout): + async with asyncio_timeout(self.timeout): return await self.future def connection_lost(self, exc: Exception | None) -> None: