Support ONVIF exceptions when sending pan-tilt commands (#10777)

Co-authored-by: Aurel <me@home.com>
This commit is contained in:
faurel 2024-04-01 21:19:24 +02:00 committed by GitHub
parent bd70bf1c31
commit a886b6a3e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,7 +349,10 @@ class OnvifController:
}
}
try:
onvif.get_service("ptz").ContinuousMove(move_request)
except ONVIFError as e:
logger.warning(f"Onvif sending move request to {camera_name} failed: {e}")
def _move_relative(self, camera_name: str, pan, tilt, zoom, speed) -> None:
if "pt-r-fov" not in self.cams[camera_name]["features"]: