NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
use getattr instead of get (#8094)
Josh Hawkinsdbd21eb6fabd
diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.pyindex 7ab13b9e9c..0315446e9b 100644--- a/frigate/ptz/onvif.py+++ b/frigate/ptz/onvif.py@@ -176,7 +176,7 @@ class OnvifController:for preset in presets:self.cams[camera_name]["presets"][- preset.get("Name", f"preset {preset['token']}").lower()+ getattr(preset, "Name", f"preset {preset['token']}").lower()] = preset["token"]# get list of supported features