From f2030d301f0f9c0ac7f85f1594a4cf2ad7884d74 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 18 Apr 2022 06:52:13 -0500 Subject: [PATCH] type fixes --- frigate/models.py | 3 +-- frigate/object_processing.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frigate/models.py b/frigate/models.py index 8df85b7d8..45d387bec 100644 --- a/frigate/models.py +++ b/frigate/models.py @@ -5,11 +5,10 @@ from peewee import ( DateTimeField, FloatField, BooleanField, - JSONField, TextField, IntegerField, ) -from playhouse.sqlite_ext import * +from playhouse.sqlite_ext import JSONField class Event(Model): # type: ignore[misc] diff --git a/frigate/object_processing.py b/frigate/object_processing.py index adf1556d5..a7509ef49 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -461,7 +461,7 @@ class CameraState: def finished(self, obj_id): del self.tracked_objects[obj_id] - def on(self, event_type: str, callback: Callable[[Dict], None]): + def on(self, event_type: str, callback: Callable[[dict], None]): self.callbacks[event_type].append(callback) def update(self, frame_time, current_detections, motion_boxes, regions):