mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Adjust zeroconf ServiceInfo query timeout to 3 seconds
This commit is contained in:
parent
127cbde2a2
commit
4a21cd9d47
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ class DashboardImportDiscovery:
|
|||
self, zeroconf: Zeroconf, info: AsyncServiceInfo, service_type: str, name: str
|
||||
) -> None:
|
||||
"""Process a service info."""
|
||||
if await info.async_request(zeroconf, timeout=5):
|
||||
# Timeout in 3s (async_request wants the timeout in millis)
|
||||
if await info.async_request(zeroconf, timeout=3000):
|
||||
self._process_service_info(name, info)
|
||||
|
||||
def _process_service_info(self, name: str, info: ServiceInfo) -> None:
|
||||
|
|
Loading…
Reference in a new issue