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 GitHub
parent 81d2f5b791
commit eced3b0f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()