diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 7ab13b9e9..0315446e9 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