Remove throttling from critical api methods

This commit is contained in:
Kevin Fronczak
2019-05-18 12:15:57 -04:00
parent 749c68bb8a
commit 37b729b597
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -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.
@@ -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.
@@ -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.
+1 -2
View File
@@ -80,8 +80,7 @@ class BlinkSyncModule():
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']