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

This commit is contained in:
Diefferson Koderer Môro authored and GitHub committed 2020-07-10 10:13:16 -04:00
1 parent 609bd6313a
commit 804cae02ee
1 file changed
+1 -1
+1 -1
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,