mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
try deleting zoom spaces if disabled (#13915)
This commit is contained in:
parent
08941ab39a
commit
a7ed90f042
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user