mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
try deleting zoom spaces if disabled
This commit is contained in:
parent
f4f3cfa911
commit
35360787c1
@ -207,7 +207,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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user