Make zeroconf lookups background tasks (#112669)

* Make zeroconf lookups background tasks

There were blocking startup and shutdown

* disable for now
pull/111883/head
J. Nick Koston 2024-03-07 18:37:56 -10:00 committed by GitHub
parent d40bd0f6c8
commit a12fa0383b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

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