diff --git a/frigate/api/app.py b/frigate/api/app.py index 0919e15866..67c2bcfd48 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -135,9 +135,10 @@ def config(request: Request): camera_dict["zones"][zone_name]["color"] = zone.color # remove go2rtc stream passwords - for stream_name, stream in request.app.frigate_config.go2rtc.get( - "streams", {} - ).items(): + go2rtc = config_obj.go2rtc.model_dump( + mode="json", warnings="none", exclude_none=True + ) + for stream_name, stream in go2rtc.get("streams", {}).items(): if isinstance(stream, str): cleaned = clean_camera_user_pass(stream) else: