make migrated movement weight a zero

This commit is contained in:
Josh Hawkins 2025-04-28 21:33:09 -05:00
parent ebede3075d
commit a86bf95d3b

View File

@ -330,7 +330,7 @@ def migrate_016_0(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any]
if movement_weights and len(movement_weights.split(",")) == 5: if movement_weights and len(movement_weights.split(",")) == 5:
onvif_config["autotracking"]["movement_weights"] = ( onvif_config["autotracking"]["movement_weights"] = (
movement_weights + ", 1" movement_weights + ", 0"
) )
camera_config["onvif"] = onvif_config camera_config["onvif"] = onvif_config