mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
type fixes
This commit is contained in:
parent
d890217447
commit
f2030d301f
@ -5,11 +5,10 @@ from peewee import (
|
|||||||
DateTimeField,
|
DateTimeField,
|
||||||
FloatField,
|
FloatField,
|
||||||
BooleanField,
|
BooleanField,
|
||||||
JSONField,
|
|
||||||
TextField,
|
TextField,
|
||||||
IntegerField,
|
IntegerField,
|
||||||
)
|
)
|
||||||
from playhouse.sqlite_ext import *
|
from playhouse.sqlite_ext import JSONField
|
||||||
|
|
||||||
|
|
||||||
class Event(Model): # type: ignore[misc]
|
class Event(Model): # type: ignore[misc]
|
||||||
|
@ -461,7 +461,7 @@ class CameraState:
|
|||||||
def finished(self, obj_id):
|
def finished(self, obj_id):
|
||||||
del self.tracked_objects[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)
|
self.callbacks[event_type].append(callback)
|
||||||
|
|
||||||
def update(self, frame_time, current_detections, motion_boxes, regions):
|
def update(self, frame_time, current_detections, motion_boxes, regions):
|
||||||
|
Loading…
Reference in New Issue
Block a user