mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 04:05:26 +03:00
more consistency
This commit is contained in:
parent
236f1c2def
commit
86b1b5b779
@ -249,7 +249,9 @@ class PtzAutoTracker:
|
|||||||
|
|
||||||
if not self.onvif.cams[camera]["init"]:
|
if not self.onvif.cams[camera]["init"]:
|
||||||
if not self.onvif._init_onvif(camera):
|
if not self.onvif._init_onvif(camera):
|
||||||
logger.warning(f"Unable to initialize onvif for {camera}")
|
logger.warning(
|
||||||
|
f"Disabling autotracking for {camera}: Unable to initialize onvif"
|
||||||
|
)
|
||||||
camera_config.onvif.autotracking.enabled = False
|
camera_config.onvif.autotracking.enabled = False
|
||||||
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user