Skip to content

Commit

Permalink
fix: add missing async keyword to send timeout (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Sep 9, 2023
1 parent 84abb83 commit 1097e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bluetooth_auto_recovery/recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1097e44

Please sign in to comment.