From fec0bba46efbe62ac59ab7607c85aadbc42e876a Mon Sep 17 00:00:00 2001 From: Rob Arnold <326113+robarnold@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:05:44 -0800 Subject: [PATCH] Actually fix lint --- frigate/util/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/util/services.py b/frigate/util/services.py index d2e3204df..fa8622210 100644 --- a/frigate/util/services.py +++ b/frigate/util/services.py @@ -214,11 +214,12 @@ def is_vaapi_amd_driver() -> bool: logger.error(f"Unable to poll vainfo: {p.stderr}") return False else: - output = p.stdout.decode('unicode_escape').split("\n") + output = p.stdout.decode("unicode_escape").split("\n") # VA Info will print out the friendly name of the driver return any("AMD Radeon Graphics" in line for line in output) + def get_amd_gpu_stats() -> dict[str, str]: """Get stats using radeontop.""" radeontop_command = ["radeontop", "-d", "-", "-l", "1"]