Add missing timeout to "async_request" (#6267)

This commit is contained in:
Jesse Hills 2024-02-22 12:51:06 +13:00 committed by GitHub
parent 75af4c3d62
commit 127cbde2a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ class DashboardImportDiscovery:
self, zeroconf: Zeroconf, info: AsyncServiceInfo, service_type: str, name: str
) -> None:
"""Process a service info."""
if await info.async_request(zeroconf):
if await info.async_request(zeroconf, timeout=5):
self._process_service_info(name, info)
def _process_service_info(self, name: str, info: ServiceInfo) -> None: