From 5e567d4628d72996738ab204f3e80a968f1797e0 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Thu, 7 May 2026 00:27:48 +0200 Subject: [PATCH] feat(zigbee): add slow-fetch hint in modal + bump timeout to 300s - Modal: small italic note under Test/Fetch buttons warning users that large meshes can take several minutes - Service: _NETWORKMAP_TIMEOUT 180s -> 300s (5 min) for very large meshes --- backend/app/services/zigbee_service.py | 2 +- frontend/src/components/zigbee/ZigbeeImportModal.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/app/services/zigbee_service.py b/backend/app/services/zigbee_service.py index a5fbd12..4b6222a 100644 --- a/backend/app/services/zigbee_service.py +++ b/backend/app/services/zigbee_service.py @@ -18,7 +18,7 @@ except ImportError: # pragma: no cover _NETWORKMAP_REQUEST_TOPIC = "{base_topic}/bridge/request/networkmap" _NETWORKMAP_RESPONSE_TOPIC = "{base_topic}/bridge/response/networkmap" _CONNECTION_TIMEOUT = 5.0 # seconds to verify broker reachability -_NETWORKMAP_TIMEOUT = 180.0 # seconds to wait for the networkmap response (large meshes can be slow) +_NETWORKMAP_TIMEOUT = 300.0 # seconds to wait for the networkmap response (large meshes can be slow) def _sanitize_mqtt_error(exc: BaseException) -> str: diff --git a/frontend/src/components/zigbee/ZigbeeImportModal.tsx b/frontend/src/components/zigbee/ZigbeeImportModal.tsx index fbc002a..865207a 100644 --- a/frontend/src/components/zigbee/ZigbeeImportModal.tsx +++ b/frontend/src/components/zigbee/ZigbeeImportModal.tsx @@ -309,6 +309,9 @@ export function ZigbeeImportModal({ open, onClose, onAddToCanvas }: ZigbeeImport Fetch Devices +

+ Fetching the network map can take several minutes on large meshes. +

{/* Device List */}