Skip to content

Commit

Permalink
Speed up arm state determination
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer committed Nov 6, 2023
1 parent 4beb976 commit f8c9123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blinkpy/sync_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def local_storage_manifest_ready(self):
async def async_arm(self, value):
"""Arm or disarm camera."""
if value:
self.network_info["network"]["armed"] = True
return await api.request_system_arm(self.blink, self.network_id)
self.network_info["network"]["armed"] = False
return await api.request_system_disarm(self.blink, self.network_id)

async def start(self):
Expand Down

0 comments on commit f8c9123

Please sign in to comment.