From 5bffd02cb2401731297cac629696fab391f1b1dd Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 31 Aug 2024 08:31:28 -0600 Subject: [PATCH] Target camera config --- frigate/util/config.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frigate/util/config.py b/frigate/util/config.py index 3d6a22e97..dde5ac375 100644 --- a/frigate/util/config.py +++ b/frigate/util/config.py @@ -234,10 +234,9 @@ def migrate_015_0(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any] else: detections_retention["retain"]["days"] = 0 - new_config["record"]["alerts"] = alerts_retention - new_config["record"]["detections"] = detections_retention - - del new_config["record"]["events"] + camera_config["record"]["alerts"] = alerts_retention + camera_config["record"]["detections"] = detections_retention + del camera_config["record"]["events"] new_config["cameras"][name] = camera_config