From f38bffde437fd47eb2790be0c813a6a23fbf3e83 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 10 Jun 2025 16:33:18 -0600 Subject: [PATCH] Adjust --- frigate/api/app.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frigate/api/app.py b/frigate/api/app.py index 38116f6d6..17a04f770 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -392,14 +392,15 @@ def config_set(request: Request, body: AppConfigSetBody): if body.requires_restart == 0 or body.update_topic: request.app.frigate_config = config - if body.update_topic and body.update_topic.startswith("config/cameras/"): - _, _, camera, field = body.update_topic.split("/") + if body.update_topic: + if body.update_topic.startswith("config/cameras/"): + _, _, camera, field = body.update_topic.split("/") - settings = config.get_nested_object(body.update_topic) - request.app.config_publisher.publish_update( - CameraConfigUpdateTopic(CameraConfigUpdateEnum[field], camera), - settings, - ) + settings = config.get_nested_object(body.update_topic) + request.app.config_publisher.publish_update( + CameraConfigUpdateTopic(CameraConfigUpdateEnum[field], camera), + settings, + ) return JSONResponse( content=(