Skip to content

Commit 3c82b8a

Browse files
committed
fix(frigate-health-checker): use union type syntax for isinstance check
1 parent 4260017 commit 3c82b8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frigate-health-checker/src/frigate_health_checker/health_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _get_camera_count(self, stats: dict[str, object]) -> int:
138138
for camera_stats in cameras.values():
139139
if isinstance(camera_stats, dict):
140140
fps = camera_stats.get("camera_fps", 0)
141-
if isinstance(fps, (int, float)) and fps >= 1:
141+
if isinstance(fps, int | float) and fps >= 1:
142142
count += 1
143143
return count
144144

0 commit comments

Comments
 (0)