forked from home-assistant/core
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:
committed by
Paulus Schoutsen
parent
a61650e38f
commit
6fe20be095
@@ -394,6 +394,7 @@ class USBDiscovery:
|
|||||||
cooldown=REQUEST_SCAN_COOLDOWN,
|
cooldown=REQUEST_SCAN_COOLDOWN,
|
||||||
immediate=True,
|
immediate=True,
|
||||||
function=self._async_scan,
|
function=self._async_scan,
|
||||||
|
background=True,
|
||||||
)
|
)
|
||||||
await self._request_debouncer.async_call()
|
await self._request_debouncer.async_call()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user