NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix config saving api (#13969)
Nicolas Mowena6ccb376832c
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex d4e3b41b61..2de0b0f234 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -7,10 +7,10 @@ import osimport tracebackfrom datetime import datetime, timedeltafrom functools import reduce-from typing import Optional+from typing import Any, Optionalimport requests-from fastapi import APIRouter, Path, Request, Response+from fastapi import APIRouter, Body, Path, Request, Responsefrom fastapi.encoders import jsonable_encoderfrom fastapi.params import Dependsfrom fastapi.responses import JSONResponse, PlainTextResponse@@ -166,7 +166,7 @@ def config_raw():@router.post("/config/save")-def config_save(save_option: str, body: dict):+def config_save(save_option: str, body: Any = Body()):new_config = bodyif not new_config: