Fix get profiles checking if has ptz capabilities (#37176)

pull/36800/head
Diefferson Koderer Môro 2020-07-10 11:13:16 -03:00 committed by GitHub
parent 609bd6313a
commit 804cae02ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,