Skip to content

Commit

Permalink
Fix usb scan delaying shutdown (#116390)
Browse files Browse the repository at this point in the history
If the integration page is accessed right before shutdown it
can trigger the usb scan debouncer which was not marked as
background so shutdown would wait for the scan to finish
  • Loading branch information
bdraco authored and balloob committed Apr 29, 2024
1 parent a61650e commit 6fe20be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/usb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ async def async_request_scan(self) -> None:
cooldown=REQUEST_SCAN_COOLDOWN,
immediate=True,
function=self._async_scan,
background=True,
)
await self._request_debouncer.async_call()

Expand Down

0 comments on commit 6fe20be

Please sign in to comment.