mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Add missing timeout to "async_request" (#6267)
This commit is contained in:
parent
2d22a2d1c2
commit
2e7129e816
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class DashboardImportDiscovery:
|
||||||
self, zeroconf: Zeroconf, info: AsyncServiceInfo, service_type: str, name: str
|
self, zeroconf: Zeroconf, info: AsyncServiceInfo, service_type: str, name: str
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Process a service info."""
|
"""Process a service info."""
|
||||||
if await info.async_request(zeroconf):
|
if await info.async_request(zeroconf, timeout=5):
|
||||||
self._process_service_info(name, info)
|
self._process_service_info(name, info)
|
||||||
|
|
||||||
def _process_service_info(self, name: str, info: ServiceInfo) -> None:
|
def _process_service_info(self, name: str, info: ServiceInfo) -> None:
|
||||||
|
|
Loading…
Reference in a new issue