mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix usb scan delaying shutdown (#116390)
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
This commit is contained in:
parent
81d2f5b791
commit
eced3b0f57
@ -394,6 +394,7 @@ class USBDiscovery:
|
||||
cooldown=REQUEST_SCAN_COOLDOWN,
|
||||
immediate=True,
|
||||
function=self._async_scan,
|
||||
background=True,
|
||||
)
|
||||
await self._request_debouncer.async_call()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user