mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix get profiles checking if has ptz capabilities (#37176)
This commit is contained in:
parent
609bd6313a
commit
804cae02ee
@ -284,7 +284,7 @@ class ONVIFDevice:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Configure PTZ options
|
# Configure PTZ options
|
||||||
if onvif_profile.PTZConfiguration:
|
if self.capabilities.ptz and onvif_profile.PTZConfiguration:
|
||||||
profile.ptz = PTZ(
|
profile.ptz = PTZ(
|
||||||
onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
|
onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
|
||||||
is not None,
|
is not None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user