mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix logic error in preset fetch (#8245)
This commit is contained in:
parent
0c2f3a9702
commit
ee1e1b748c
@ -176,7 +176,7 @@ class OnvifController:
|
|||||||
|
|
||||||
for preset in presets:
|
for preset in presets:
|
||||||
self.cams[camera_name]["presets"][
|
self.cams[camera_name]["presets"][
|
||||||
getattr(preset, "Name", f"preset {preset['token']}").lower()
|
(getattr(preset, "Name") or f"preset {preset['token']}").lower()
|
||||||
] = preset["token"]
|
] = preset["token"]
|
||||||
|
|
||||||
# get list of supported features
|
# get list of supported features
|
||||||
|
Loading…
Reference in New Issue
Block a user