From b73d122b15c48df6507f7b9b9b15dfbac7bfdf31 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Wed, 10 Jun 2020 14:06:42 +0000 Subject: [PATCH] Fixed missing sync module arm method --- blinkpy/sync_module.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 77c1719..7d943e7 100644 --- a/blinkpy/sync_module.py +++ b/blinkpy/sync_module.py @@ -77,8 +77,10 @@ class BlinkSyncModule: @arm.setter def arm(self, value): - """Arm or disarm system.""" - _LOGGER.warning("Arm/Disarm API for %s not currently implemented.", self.name) + """Arm or disarm camera.""" + if value: + return api.request_system_arm(self.blink, self.network_id) + return api.request_system_disarm(self.blink, self.network_id) def start(self): """Initialize the system.""" @@ -285,10 +287,4 @@ class BlinkOwl(BlinkSyncModule): @arm.setter def arm(self, value): """Arm or disarm camera.""" - if value: - return api.request_motion_detection_enable( - self.blink, self.network_id, self.sync_id - ) - return api.request_motion_detection_disable( - self.blink, self.network_id, self.sync_id - ) + _LOGGER.warning("Arm/Disarm API for %s not currently implemented.", self.name)