mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Fix mypy
This commit is contained in:
parent
2c38913179
commit
1062e26b51
@ -88,8 +88,11 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]:
|
||||
hwaccel_args = []
|
||||
|
||||
for camera in config.cameras.values():
|
||||
args = camera.ffmpeg.hwaccel_args
|
||||
args = " ".join(args) if args is list else args
|
||||
args = (
|
||||
" ".join(camera.ffmpeg.hwaccel_args)
|
||||
if camera.ffmpeg.hwaccel_args is list
|
||||
else camera.ffmpeg.hwaccel_args
|
||||
)
|
||||
|
||||
if args and args not in hwaccel_args:
|
||||
hwaccel_args.append(args)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user