Skip to content

Commit

Permalink
try deleting zoom spaces if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Sep 22, 2024
1 parent f4f3cfa commit 3536078
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frigate/ptz/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ def _init_onvif(self, camera_name: str) -> bool:
"RelativeZoomTranslationSpace"
][zoom_space_id]["URI"]
else:
move_request.Translation.Zoom = []
if "Zoom" in move_request["Translation"]:
del move_request["Translation"]["Zoom"]
if "Zoom" in move_request["Speed"]:
del move_request["Speed"]["Zoom"]
logger.debug(
f"{camera_name}: Relative move request after deleting zoom: {move_request}"
)
except Exception:
self.config.cameras[
camera_name
Expand Down

0 comments on commit 3536078

Please sign in to comment.