mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
onvif: use preset token if name is unsupported (#8046)
* onvif: use preset token if name is unsupported * move parenthesis
This commit is contained in:
parent
5d2b87e077
commit
67a5a7d21a
@ -175,7 +175,9 @@ class OnvifController:
|
|||||||
presets = []
|
presets = []
|
||||||
|
|
||||||
for preset in 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
|
# get list of supported features
|
||||||
ptz_config = ptz.GetConfigurationOptions(request)
|
ptz_config = ptz.GetConfigurationOptions(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user