Skip to content

Commit

Permalink
chore(pre-commit.ci): auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2025
1 parent 2908e24 commit b650dac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/habluetooth/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,9 @@ async def _async_start_attempt(self, attempt: int) -> bool:
self._log_start_attempt(attempt)
self._start_future = self._loop.create_future()
try:
async with asyncio.timeout(START_TIMEOUT), async_interrupt.interrupt(
self._start_future, _AbortStartError, None
async with (
asyncio.timeout(START_TIMEOUT),
async_interrupt.interrupt(self._start_future, _AbortStartError, None),
):
await self.scanner.start()
except _AbortStartError as ex:
Expand Down

0 comments on commit b650dac

Please sign in to comment.