show reolink warning when using probe path in camera wizard

This commit is contained in:
Josh Hawkins
2026-07-05 17:20:19 -05:00
parent 0c18c504bc
commit 35cad25784
@@ -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<WizardFormData> = {
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");
}