try deleting zoom spaces if disabled (#13915)

This commit is contained in:
Josh Hawkins 2024-09-23 15:34:08 -05:00 committed by GitHub
parent 08941ab39a
commit a7ed90f042
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,13 @@ class OnvifController:
"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