mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Blink arm camera (#56474)
This commit is contained in:
parent
6d6cb03848
commit
15c4f3906b
@ -46,16 +46,18 @@ class BlinkCamera(Camera):
|
|||||||
|
|
||||||
def enable_motion_detection(self):
|
def enable_motion_detection(self):
|
||||||
"""Enable motion detection for the camera."""
|
"""Enable motion detection for the camera."""
|
||||||
self._camera.set_motion_detect(True)
|
self._camera.arm = True
|
||||||
|
self.data.refresh()
|
||||||
|
|
||||||
def disable_motion_detection(self):
|
def disable_motion_detection(self):
|
||||||
"""Disable motion detection for the camera."""
|
"""Disable motion detection for the camera."""
|
||||||
self._camera.set_motion_detect(False)
|
self._camera.arm = False
|
||||||
|
self.data.refresh()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def motion_detection_enabled(self):
|
def motion_detection_enabled(self):
|
||||||
"""Return the state of the camera."""
|
"""Return the state of the camera."""
|
||||||
return self._camera.motion_enabled
|
return self._camera.arm
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def brand(self):
|
def brand(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user