From 6a3d15f1e157fd869973ab1d854ec7aa35137a34 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 23 Mar 2024 09:12:58 -0600 Subject: [PATCH] Formatting --- frigate/events/external.py | 7 ++++++- frigate/events/types.py | 2 +- frigate/object_processing.py | 4 +--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frigate/events/external.py b/frigate/events/external.py index a9ebf569c..7bae21071 100644 --- a/frigate/events/external.py +++ b/frigate/events/external.py @@ -78,7 +78,12 @@ class ExternalEventProcessor: def finish_manual_event(self, event_id: str, end_time: float) -> None: """Finish external event with indeterminate duration.""" self.event_sender.publish( - (EventTypeEnum.api, EventStateEnum.end, None, {"id": event_id, "end_time": end_time}) + ( + EventTypeEnum.api, + EventStateEnum.end, + None, + {"id": event_id, "end_time": end_time}, + ) ) def _write_images( diff --git a/frigate/events/types.py b/frigate/events/types.py index 10d0c1595..1750b3e7b 100644 --- a/frigate/events/types.py +++ b/frigate/events/types.py @@ -11,4 +11,4 @@ class EventTypeEnum(str, Enum): class EventStateEnum(str, Enum): start = "start" update = "update" - end = "end" \ No newline at end of file + end = "end" diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 98197751c..c5e8101dc 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -536,9 +536,7 @@ class CameraState: ): max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[ self.name - ][ - "max_target_box" - ] + ]["max_target_box"] side_length = max_target_box * ( max( self.camera_config.detect.width,