From 8b7cc127bfe1d86f2f23dd35910acc9256c92a2e Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 24 Dec 2025 08:09:14 -0600 Subject: [PATCH] pull in current config version into default config --- frigate/config/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frigate/config/config.py b/frigate/config/config.py index 6342c13bf..a9c54976e 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -28,6 +28,7 @@ from frigate.util.builtin import ( get_ffmpeg_arg_list, ) from frigate.util.config import ( + CURRENT_CONFIG_VERSION, StreamInfoRetriever, convert_area_to_pixels, find_config_file, @@ -76,11 +77,12 @@ logger = logging.getLogger(__name__) yaml = YAML() -DEFAULT_CONFIG = """ +DEFAULT_CONFIG = f""" mqtt: enabled: False -cameras: {} # No cameras defined, UI wizard should be used +cameras: {{}} # No cameras defined, UI wizard should be used +version: {CURRENT_CONFIG_VERSION} """ DEFAULT_DETECTORS = {"cpu": {"type": "cpu"}} @@ -753,8 +755,7 @@ class FrigateConfig(FrigateBaseModel): if new_config and f.tell() == 0: f.write(DEFAULT_CONFIG) logger.info( - "Created default config file, see the getting started docs \ - for configuration https://docs.frigate.video/guides/getting_started" + "Created default config file, see the getting started docs for configuration: https://docs.frigate.video/guides/getting_started" ) f.seek(0)