Fix get profiles checking if has ptz capabilities (#37176)
parent
609bd6313a
commit
804cae02ee
|
@ -284,7 +284,7 @@ class ONVIFDevice:
|
|||
)
|
||||
|
||||
# Configure PTZ options
|
||||
if onvif_profile.PTZConfiguration:
|
||||
if self.capabilities.ptz and onvif_profile.PTZConfiguration:
|
||||
profile.ptz = PTZ(
|
||||
onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
|
||||
is not None,
|
||||
|
|
Loading…
Reference in New Issue