Skip to content

Commit

Permalink
Fix missing PTZ parameters on Q3505 (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored Mar 15, 2024
1 parent db0fd75 commit b17008d
Show file tree
Hide file tree
Showing 2 changed files with 411 additions and 4 deletions.
8 changes: 4 additions & 4 deletions axis/vapix/models/parameters/ptz.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ class PtzVarious:
control_queueing: bool
control_queue_limit: int
control_queue_poll_time: int
home_preset_set: bool
home_preset_set: bool | None
locked: bool
max_proportional_speed: int | None
pan_enabled: bool | None
proportional_speed_enabled: bool | None
return_to_overview: int
return_to_overview: int | None
speed_control_enabled: bool | None
tilt_enabled: bool | None
zoom_enabled: bool | None
Expand All @@ -337,12 +337,12 @@ def decode(cls, data: PtzVariousParamT) -> Self:
control_queueing=data["CtlQueueing"],
control_queue_limit=data["CtlQueueLimit"],
control_queue_poll_time=data["CtlQueuePollTime"],
home_preset_set=data["HomePresetSet"],
home_preset_set=data.get("HomePresetSet"),
locked=data.get("Locked", False),
max_proportional_speed=data.get("MaxProportionalSpeed"),
pan_enabled=data.get("PanEnabled"),
proportional_speed_enabled=data.get("ProportionalSpeedEnabled"),
return_to_overview=data["ReturnToOverview"],
return_to_overview=data.get("ReturnToOverview"),
speed_control_enabled=data.get("SpeedCtlEnabled"),
tilt_enabled=data.get("TiltEnabled"),
zoom_enabled=data.get("ZoomEnabled"),
Expand Down
Loading

0 comments on commit b17008d

Please sign in to comment.