From 1062e26b511445ea3154b0f1e1b6a41ac6fafacc Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 27 Sep 2022 09:47:40 -0600 Subject: [PATCH] Fix mypy --- frigate/stats.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frigate/stats.py b/frigate/stats.py index 582e80719..5191499f3 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -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)