From ca90946e2e7cb9573acca7c76c13e97a535ab306 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sat, 29 Apr 2023 13:20:48 -0600 Subject: [PATCH] fix typing --- frigate/events.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/events.py b/frigate/events.py index 68ee923ef..47df9665f 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -6,7 +6,6 @@ import threading from enum import Enum from pathlib import Path -from typing import Any from peewee import fn @@ -106,7 +105,10 @@ class EventProcessor(threading.Thread): logger.info(f"Exiting event processor...") def handle_object_detection( - self, event_type: str, camera: str, event_data: dict[str, Any] + self, + event_type: str, + camera: str, + event_data: Event, ) -> None: """handle tracked object event updates.""" # if this is the first message, just store it and continue, its not time to insert it in the db