mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-15 15:53:44 +00:00
Merge pull request #32 from ircmaxell/fix_disconnect_handling
Skip DISCONNECT events
This commit is contained in:
@@ -431,6 +431,8 @@ class UnifiProtectBackup:
|
|||||||
return
|
return
|
||||||
if msg.new_obj.end is None:
|
if msg.new_obj.end is None:
|
||||||
return
|
return
|
||||||
|
if msg.new_obj.type not in [EventType.MOTION, EventType.SMART_DETECT, EventType.RING]:
|
||||||
|
return
|
||||||
if msg.new_obj.type is EventType.MOTION and "motion" not in self.detection_types:
|
if msg.new_obj.type is EventType.MOTION and "motion" not in self.detection_types:
|
||||||
logger.extra_debug(f"Skipping unwanted motion detection event: {msg.new_obj.id}") # type: ignore
|
logger.extra_debug(f"Skipping unwanted motion detection event: {msg.new_obj.id}") # type: ignore
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user