Return none instead of empty

This commit is contained in:
Nick Mowen 2022-10-01 20:10:10 -06:00
parent d6e37a3868
commit ca2733a593

View File

@ -135,8 +135,11 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]:
# RPi v4l2m2m is currently not able to get usage stats
pass
if stats:
return stats
return None
def stats_snapshot(
config: FrigateConfig, stats_tracking: StatsTrackingTypes