Use only the values

This commit is contained in:
Nick Mowen 2022-09-24 18:21:42 -06:00
parent 41ac558642
commit 615135d624

View File

@ -85,7 +85,7 @@ def get_temperatures() -> dict[str, float]:
def get_gpu_stats(config: FrigateConfig) -> dict[str, str]: def get_gpu_stats(config: FrigateConfig) -> dict[str, str]:
"""Parse GPUs from hwaccel args and use for stats.""" """Parse GPUs from hwaccel args and use for stats."""
hwaccel_args = set(map(lambda camera: camera.ffmpeg.hwaccel_args, config.cameras)) hwaccel_args = set(map(lambda camera: camera.ffmpeg.hwaccel_args, config.cameras.values()))
stats: dict[str, dict] = {} stats: dict[str, dict] = {}
for args in hwaccel_args: for args in hwaccel_args: