don't seed relative move translation from a status without position

This commit is contained in:
Josh Hawkins
2026-11-28 06:53:29 -06:00
parent 19a212dfb1
commit c05f76c859
+1 -1
View File
@@ -373,7 +373,7 @@ class OnvifController:
]["URI"]
if rel_move_request.Translation is None:
if status is not None:
if status is not None and status.Position is not None:
# seed from current position
rel_move_request.Translation = status.Position
rel_move_request.Translation.PanTilt.space = fov_uri