From 37b729b597cb3a46e6cb5308d5b5b585f828282d Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Sat, 18 May 2019 12:15:57 -0400 Subject: [PATCH] Remove throttling from critical api methods --- blinkpy/api.py | 3 --- blinkpy/sync_module.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/blinkpy/api.py b/blinkpy/api.py index 77cac8fc..e4fc2fd7 100644 --- a/blinkpy/api.py +++ b/blinkpy/api.py @@ -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. diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 97dfdf05..337b56c5 100644 --- a/blinkpy/sync_module.py +++ b/blinkpy/sync_module.py @@ -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']