Bugfixes and docs tweaks (#17307)

* ensure config file is updated with booleans instead of strings

* catch onvif error

* ensure object type is available as a ptz tracker

* update live view docs
This commit is contained in:
Josh Hawkins
2025-03-22 06:38:33 -06:00
committed by GitHub
parent 48e4c44b32
commit d32949017b
4 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -86,7 +86,11 @@ class OnvifController:
async def _init_onvif(self, camera_name: str) -> bool:
onvif: ONVIFCamera = self.cams[camera_name]["onvif"]
await onvif.update_xaddrs()
try:
await onvif.update_xaddrs()
except Exception as e:
logger.error(f"Onvif connection failed for {camera_name}: {e}")
return False
# create init services
media: ONVIFService = await onvif.create_media_service()