def set_motion_detect(self, enable):
        """Set motion detection."""
        if enable:
            return api.request_motion_detection_enable(self.sync.blink,
                                                       self.network_id,
                                                       self.camera_id)
        return api.request_motion_detection_disable(self.sync.blink,
                                                    self.network_id,
                                                    self.camera_id)
def set_motion_detect ( self , enable ) : if enable : return api . request_motion_detection_enable ( self . sync . blink , self . network_id , self . camera_id ) return api . request_motion_detection_disable ( self . sync . blink , self . network_id , self . camera_id )
Set motion detection.