Fix typing

This commit is contained in:
Nicolas Mowen 2025-04-23 16:56:50 -06:00
parent f4a943197b
commit 465f0e2be1
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ class ObjectDetectProcess:
self.detection_queue = detection_queue
self.avg_inference_speed = Value("d", 0.01)
self.detection_start = Value("d", 0.0)
self.detect_process = None
self.detect_process: util.Process | None = None
self.detector_config = detector_config
self.start_or_restart()

View File

@ -33,9 +33,9 @@ class FrigateWatchdog(threading.Thread):
detector.start_or_restart()
elif (
detector.detect_process is not None
and not detector.detect_process.is_alive() # type: ignore[unreachable]
and not detector.detect_process.is_alive()
):
logger.info("Detection appears to have stopped. Exiting Frigate...") # type: ignore[unreachable]
logger.info("Detection appears to have stopped. Exiting Frigate...")
restart_frigate()
logger.info("Exiting watchdog...")