Properly call super() in subclasses (#14124)

This commit is contained in:
gtsiam
2024-10-03 04:35:46 +03:00
committed by GitHub
parent 3c015bf822
commit 54900ae318
18 changed files with 19 additions and 38 deletions

View File

@@ -23,8 +23,7 @@ class EventCleanupType(str, Enum):
class EventCleanup(threading.Thread):
def __init__(self, config: FrigateConfig, stop_event: MpEvent):
threading.Thread.__init__(self)
self.name = "event_cleanup"
super().__init__(name="event_cleanup")
self.config = config
self.stop_event = stop_event
self.camera_keys = list(self.config.cameras.keys())