From 1020af2e5e706989e904fc5c64c1b1840184d2b4 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 16 Jun 2026 08:43:04 -0500 Subject: [PATCH] remove unused snapshot retention field --- frigate/config/camera/snapshots.py | 6 ------ web/src/components/config-form/section-configs/snapshots.ts | 5 ----- 2 files changed, 11 deletions(-) diff --git a/frigate/config/camera/snapshots.py b/frigate/config/camera/snapshots.py index 63bcba2267..b6bccfc40c 100644 --- a/frigate/config/camera/snapshots.py +++ b/frigate/config/camera/snapshots.py @@ -3,7 +3,6 @@ from typing import Optional from pydantic import Field from ..base import FrigateBaseModel -from .record import RetainModeEnum __all__ = ["SnapshotsConfig", "RetainConfig"] @@ -14,11 +13,6 @@ class RetainConfig(FrigateBaseModel): title="Default retention", description="Default number of days to retain snapshots.", ) - mode: RetainModeEnum = Field( - default=RetainModeEnum.motion, - title="Retention mode", - description="Mode for retention: all (save all segments), motion (save segments with motion), or active_objects (save segments with active objects).", - ) objects: dict[str, float] = Field( default_factory=dict, title="Object retention", diff --git a/web/src/components/config-form/section-configs/snapshots.ts b/web/src/components/config-form/section-configs/snapshots.ts index 67cc88dbaa..e5b5caa208 100644 --- a/web/src/components/config-form/section-configs/snapshots.ts +++ b/web/src/components/config-form/section-configs/snapshots.ts @@ -36,11 +36,6 @@ const snapshots: SectionConfigOverrides = { suppressMultiSchema: true, }, }, - "retain.mode": { - "ui:options": { - enumI18nPrefix: "retainMode", - }, - }, }, }, global: {