mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
onvif: use preset token if name is unsupported
This commit is contained in:
parent
9a4f970337
commit
79a38a470a
@ -169,7 +169,9 @@ class OnvifController:
|
||||
presets = []
|
||||
|
||||
for preset in presets:
|
||||
self.cams[camera_name]["presets"][preset["Name"].lower()] = preset["token"]
|
||||
self.cams[camera_name]["presets"][
|
||||
preset.get("Name", f"preset {preset['token']}".lower())
|
||||
] = preset["token"]
|
||||
|
||||
# get list of supported features
|
||||
ptz_config = ptz.GetConfigurationOptions(request)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user