Skip to content

Commit

Permalink
Update camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahme49 authored and bdraco committed Oct 27, 2021
1 parent 284d018 commit 2ff0faa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/blink/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def extra_state_attributes(self):
def enable_motion_detection(self):
"""Enable motion detection for the camera."""
self._camera.arm = True
self.data.refresh()

def disable_motion_detection(self):
"""Disable motion detection for the camera."""
self._camera.arm = False
self.data.refresh()

@property
def motion_detection_enabled(self):
Expand Down

0 comments on commit 2ff0faa

Please sign in to comment.