Skip to content

Commit

Permalink
Merge pull request #173 from fronzbot/reduce-throttling
Browse files Browse the repository at this point in the history
Remove throttling from critical api methods
  • Loading branch information
fronzbot authored May 18, 2019
2 parents 749c68b + 37b729b commit c10fb43
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 c10fb43

Please sign in to comment.