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:
J. Nick Koston 2024-04-29 09:07:48 -05:00 committed by Paulus Schoutsen
parent a61650e38f
commit 6fe20be095

View File

@ -394,6 +394,7 @@ class USBDiscovery:
cooldown=REQUEST_SCAN_COOLDOWN,
immediate=True,
function=self._async_scan,
background=True,
)
await self._request_debouncer.async_call()