From ca2733a5936fec90b83fe7f3def939f38b88282d Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sat, 1 Oct 2022 20:10:10 -0600 Subject: [PATCH] Return none instead of empty --- frigate/stats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/stats.py b/frigate/stats.py index edc7ec8f5..7ed1aa914 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -135,7 +135,10 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]: # RPi v4l2m2m is currently not able to get usage stats pass - return stats + if stats: + return stats + + return None def stats_snapshot(