mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
use getattr instead of get (#8094)
This commit is contained in:
parent
e1a6398219
commit
dbd21eb6fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user