diff --git a/docs/docs/configuration/reference.md b/docs/docs/configuration/reference.md index f1929aa42..c6815517f 100644 --- a/docs/docs/configuration/reference.md +++ b/docs/docs/configuration/reference.md @@ -645,8 +645,6 @@ cameras: # Optional ui: - # Optional: Set the default live mode for cameras in the UI (default: shown below) - live_mode: mse # Optional: Set a timezone to use in the UI (default: use browser local time) # timezone: America/Denver # Optional: Set the time format used. diff --git a/frigate/util/config.py b/frigate/util/config.py index 6f66a5992..59c967e4d 100644 --- a/frigate/util/config.py +++ b/frigate/util/config.py @@ -87,8 +87,13 @@ def migrate_014(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any]]: if not new_config["record"]: del new_config["record"] - if new_config.get("ui", {}).get("use_experimental"): - del new_config["ui"]["experimental"] + if new_config.get("ui"): + + if new_config["ui"].get("use_experimental"): + del new_config["ui"]["experimental"] + + if new_config["ui"].get("live_mode"): + del new_config["ui"]["live_mode"] if not new_config["ui"]: del new_config["ui"] diff --git a/web/src/types/frigateConfig.ts b/web/src/types/frigateConfig.ts index b24841151..2eb7622d6 100644 --- a/web/src/types/frigateConfig.ts +++ b/web/src/types/frigateConfig.ts @@ -1,5 +1,4 @@ import { IconName } from "@/components/icons/IconPicker"; -import { LivePlayerMode } from "./live"; export interface UiConfig { timezone?: string; @@ -7,8 +6,6 @@ export interface UiConfig { date_style?: "full" | "long" | "medium" | "short"; time_style?: "full" | "long" | "medium" | "short"; strftime_fmt?: string; - live_mode?: LivePlayerMode; - use_experimental?: boolean; dashboard: boolean; order: number; }