From 0534f63e8a32c5e0b2b46e6e6ade154c1b500715 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 3 Feb 2023 08:53:45 -0700 Subject: [PATCH] Formatting --- frigate/app.py | 4 +++- frigate/watchdog.py | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index 5a8e79a85..76e525e27 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -330,7 +330,9 @@ class FrigateApp: self.stats_emitter.start() def start_watchdog(self) -> None: - self.frigate_watchdog = FrigateWatchdog(self.config, self.detectors, self.stop_event) + self.frigate_watchdog = FrigateWatchdog( + self.config, self.detectors, self.stop_event + ) self.frigate_watchdog.start() def check_shm(self) -> None: diff --git a/frigate/watchdog.py b/frigate/watchdog.py index a5b9eb9ed..79f38d38c 100644 --- a/frigate/watchdog.py +++ b/frigate/watchdog.py @@ -13,7 +13,12 @@ logger = logging.getLogger(__name__) class FrigateWatchdog(threading.Thread): - def __init__(self, config: FrigateConfig, detectors: dict[str, ObjectDetectProcess], stop_event: MpEvent): + def __init__( + self, + config: FrigateConfig, + detectors: dict[str, ObjectDetectProcess], + stop_event: MpEvent, + ): threading.Thread.__init__(self) self.name = "frigate_watchdog" self.config = config