From eb53733b87162c7196998b430e5312b532de7f3c Mon Sep 17 00:00:00 2001 From: George Tsiamasiotis Date: Wed, 25 Sep 2024 10:06:37 +0300 Subject: [PATCH] Fixed PtzMotionEstimator.ptz_metrics type annotation --- frigate/ptz/autotrack.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 93231c92c..c1364f0aa 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -49,9 +49,7 @@ def ptz_moving_at_frame_time(frame_time, ptz_start_time, ptz_stop_time): class PtzMotionEstimator: - def __init__( - self, config: CameraConfig, ptz_metrics: dict[str, PTZMetrics] - ) -> None: + def __init__(self, config: CameraConfig, ptz_metrics: PTZMetrics) -> None: self.frame_manager = SharedMemoryFrameManager() self.norfair_motion_estimator = None self.camera_config = config