Skip to content

NVR with realtime local object detection for IP cameras

API response cleanup (#15389)

Nicolas Mowend0cc8cb64b1c
diff --git a/frigate/api/defs/response/event_response.py b/frigate/api/defs/response/event_response.py
index 75cf670dc4..17b9b166f2 100644
--- a/frigate/api/defs/response/event_response.py
+++ b/frigate/api/defs/response/event_response.py
@@ -1,6 +1,6 @@
from typing import Any, Optional
-from pydantic import BaseModel
+from pydantic import BaseModel, ConfigDict
class EventResponse(BaseModel):
@@ -10,7 +10,7 @@ class EventResponse(BaseModel):
camera: str
start_time: float
end_time: Optional[float]
- false_positive: bool
+ false_positive: Optional[bool]
zones: list[str]
thumbnail: str
has_clip: bool
@@ -22,6 +22,8 @@ class EventResponse(BaseModel):
model_type: Optional[str]
data: dict[str, Any]
+ model_config = ConfigDict(protected_namespaces=())
+
class EventCreateResponse(BaseModel):
success: bool