From 35cad25784fbb48323204e7efad078fba1c455e6 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 5 Jul 2026 17:20:19 -0500 Subject: [PATCH] show reolink warning when using probe path in camera wizard --- .../settings/wizard/Step2ProbeOrSnapshot.tsx | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/web/src/components/settings/wizard/Step2ProbeOrSnapshot.tsx b/web/src/components/settings/wizard/Step2ProbeOrSnapshot.tsx index 1f805594d6..d65c142d45 100644 --- a/web/src/components/settings/wizard/Step2ProbeOrSnapshot.tsx +++ b/web/src/components/settings/wizard/Step2ProbeOrSnapshot.tsx @@ -202,11 +202,31 @@ export default function Step2ProbeOrSnapshot({ const candidateUris = (response.data.rtsp_candidates || []) .filter((c: { source: string }) => c.source === "GetStreamUri") .map((c: { uri: string }) => c.uri); - onUpdate({ + + const update: Partial = { probeMode: true, probeCandidates: candidateUris, candidateTests: {}, - }); + }; + + const manufacturer: string = response.data.manufacturer || ""; + if ( + manufacturer.toLowerCase().includes("reolink") && + wizardData.host && + wizardData.username && + wizardData.password + ) { + const protocol = await detectReolinkCamera( + wizardData.host, + wizardData.username, + wizardData.password, + ); + if (protocol === "http-flv") { + update.brandTemplate = "reolink"; + } + } + + onUpdate(update); } else { setProbeError(response.data?.message || "Probe failed"); }