Properly call super() in subclasses (#14124)

This commit is contained in:
gtsiam
2024-10-02 19:35:46 -06:00
committed by GitHub
parent 3c015bf822
commit 54900ae318
18 changed files with 19 additions and 38 deletions
+1 -2
View File
@@ -12,8 +12,7 @@ logger = logging.getLogger(__name__)
class FrigateWatchdog(threading.Thread):
def __init__(self, detectors: dict[str, ObjectDetectProcess], stop_event: MpEvent):
threading.Thread.__init__(self)
self.name = "frigate_watchdog"
super().__init__(name="frigate_watchdog")
self.detectors = detectors
self.stop_event = stop_event