Merge pull request #164 from fronzbot/throttle-hotfix
Remove throttle from network_status
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 14
|
MINOR_VERSION = 13
|
||||||
PATCH_VERSION = '0.dev0'
|
PATCH_VERSION = '1.dev0'
|
||||||
|
|
||||||
__version__ = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
__version__ = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,10 @@ class BlinkSyncModule():
|
|||||||
@property
|
@property
|
||||||
def arm(self):
|
def arm(self):
|
||||||
"""Return status of sync module: armed/disarmed."""
|
"""Return status of sync module: armed/disarmed."""
|
||||||
return self.network_info['network']['armed']
|
try:
|
||||||
|
return self.network_info['network']['armed']
|
||||||
|
except (KeyError, TypeError):
|
||||||
|
return None
|
||||||
|
|
||||||
@arm.setter
|
@arm.setter
|
||||||
def arm(self, value):
|
def arm(self, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user