Blink arm camera (#56474)

pull/58545/head
yeahme49 2021-10-27 13:24:55 -05:00 committed by GitHub
parent 6d6cb03848
commit 15c4f3906b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -46,16 +46,18 @@ class BlinkCamera(Camera):
def enable_motion_detection(self):
"""Enable motion detection for the camera."""
self._camera.set_motion_detect(True)
self._camera.arm = True
self.data.refresh()
def disable_motion_detection(self):
"""Disable motion detection for the camera."""
self._camera.set_motion_detect(False)
self._camera.arm = False
self.data.refresh()
@property
def motion_detection_enabled(self):
"""Return the state of the camera."""
return self._camera.motion_enabled
return self._camera.arm
@property
def brand(self):