Add autotracking calibration message (#16431)

* check autotracking calibration values before writing to config

* docs

* clarify log message
This commit is contained in:
Josh Hawkins
2025-02-09 14:29:08 -07:00
committed by GitHub
parent cc2dbdcb44
commit 83beacf84a
3 changed files with 29 additions and 4 deletions
+3 -1
View File
@@ -64,7 +64,9 @@ class PtzAutotrackConfig(FrigateBaseModel):
raise ValueError("Invalid type for movement_weights")
if len(weights) != 5:
raise ValueError("movement_weights must have exactly 5 floats")
raise ValueError(
"movement_weights must have exactly 5 floats, remove this line from your config and run autotracking calibration"
)
return weights