mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +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:
|
for preset in presets:
|
||||||
self.cams[camera_name]["presets"][
|
self.cams[camera_name]["presets"][
|
||||||
preset.get("Name", f"preset {preset['token']}").lower()
|
getattr(preset, "Name", 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