Skip to content

Commit

Permalink
Fix missing event checker not ignoring unwanted cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
ep1cman committed May 22, 2023
1 parent 0a7eb92 commit f893883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unifi_protect_backup/missing_event_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f893883

Please sign in to comment.