From f89388327fb557090d8a4b9c75b600075738cb48 Mon Sep 17 00:00:00 2001 From: Sebastian Goscik Date: Mon, 22 May 2023 23:22:41 +0100 Subject: [PATCH] Fix missing event checker not ignoring unwanted cameras --- unifi_protect_backup/missing_event_checker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unifi_protect_backup/missing_event_checker.py b/unifi_protect_backup/missing_event_checker.py index 1a3f05f..b6fda33 100644 --- a/unifi_protect_backup/missing_event_checker.py +++ b/unifi_protect_backup/missing_event_checker.py @@ -87,6 +87,8 @@ def wanted_event_type(event_id): event = unifi_events[event_id] if event.start is None or event.end is None: return False # This event is still on-going + if event.camera_id in self.ignore_cameras: + return False if event.type is EventType.MOTION and "motion" not in self.detection_types: return False if event.type is EventType.RING and "ring" not in self.detection_types: