mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-04 06:33:45 +00:00
Fix
This commit is contained in:
parent
181a8a8b24
commit
545ad81059
@ -368,7 +368,8 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]
|
||||
|
||||
new_config["record"]["continuous"] = continuous
|
||||
new_config["record"]["motion"] = motion
|
||||
del new_config["record"]["retain"]
|
||||
|
||||
del new_config["record"]["retain"]
|
||||
|
||||
for name, camera in config.get("cameras", {}).items():
|
||||
camera_config: dict[str, dict[str, Any]] = camera.copy()
|
||||
@ -388,7 +389,8 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]
|
||||
|
||||
camera_config["record"]["continuous"] = continuous
|
||||
camera_config["record"]["motion"] = motion
|
||||
del camera_config["record"]["retain"]
|
||||
|
||||
del camera_config["record"]["retain"]
|
||||
|
||||
new_config["cameras"][name] = camera_config
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user