Make zeroconf lookups background tasks (#112669)
* Make zeroconf lookups background tasks There were blocking startup and shutdown * disable for nowpull/111883/head
parent
d40bd0f6c8
commit
a12fa0383b
|
@ -414,10 +414,11 @@ class ZeroconfDiscovery:
|
|||
if async_service_info.load_from_cache(zeroconf):
|
||||
self._async_process_service_update(async_service_info, service_type, name)
|
||||
else:
|
||||
self.hass.async_create_task(
|
||||
self.hass.async_create_background_task(
|
||||
self._async_lookup_and_process_service_update(
|
||||
zeroconf, async_service_info, service_type, name
|
||||
)
|
||||
),
|
||||
name=f"zeroconf lookup {name}.{service_type}",
|
||||
)
|
||||
|
||||
async def _async_lookup_and_process_service_update(
|
||||
|
|
Loading…
Reference in New Issue