Skip to content

Commit

Permalink
Remove throttling from critical api methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fronzbot committed May 18, 2019
1 parent 749c68b commit 37b729b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions blinkpy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def request_networks(blink):
return http_get(blink, url)


@Throttle(seconds=MIN_THROTTLE_TIME)
def request_network_status(blink, network):
"""
Request network information.
Expand All @@ -52,7 +51,6 @@ def request_network_status(blink, network):
return http_get(blink, url)


@Throttle(seconds=MIN_THROTTLE_TIME)
def request_syncmodule(blink, network):
"""
Request sync module info.
Expand Down Expand Up @@ -173,7 +171,6 @@ def request_videos(blink, time=None, page=0):
return http_get(blink, url)


@Throttle(seconds=MIN_THROTTLE_TIME)
def request_cameras(blink, network):
"""
Request all camera information.
Expand Down
3 changes: 1 addition & 2 deletions blinkpy/sync_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ def arm(self, value):
def start(self):
"""Initialize the system."""
response = api.request_syncmodule(self.blink,
self.network_id,
force=True)
self.network_id)
try:
self.summary = response['syncmodule']
self.network_id = self.summary['network_id']
Expand Down

0 comments on commit 37b729b

Please sign in to comment.