From 70e4ee9fea7903db11a3b1174e8104fe3c8477c9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 3 Jul 2023 11:51:49 -0500 Subject: [PATCH] disable autotracking if onvif init fails --- frigate/ptz_autotrack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/ptz_autotrack.py b/frigate/ptz_autotrack.py index 31e945d5e..c9d4d332a 100644 --- a/frigate/ptz_autotrack.py +++ b/frigate/ptz_autotrack.py @@ -146,6 +146,7 @@ class PtzAutoTracker: if not self.onvif.cams[camera_name]["init"]: if not self.onvif._init_onvif(camera_name): logger.warning(f"Unable to initialize onvif for {camera_name}") + cam.onvif.autotracking.enabled = False return if not self.onvif.cams[camera_name]["relative_fov_supported"]: cam.onvif.autotracking.enabled = False