simplified is_offline logic, deployed as 0.0.15
parent
2bfee316c4
commit
5c9018b09b
|
@ -1,5 +1,5 @@
|
||||||
""" Python client for Eagle Eye Networks APIv3 """
|
""" Python client for Eagle Eye Networks APIv3 """
|
||||||
version = "0.0.14"
|
version = "0.0.15"
|
||||||
__version__ = version
|
__version__ = version
|
||||||
|
|
||||||
|
|
||||||
|
@ -840,10 +840,7 @@ class Device():
|
||||||
|
|
||||||
def is_offline(self):
|
def is_offline(self):
|
||||||
if 'connectionStatus' in self.status:
|
if 'connectionStatus' in self.status:
|
||||||
return self.status['connectionStatus'] == "deviceOffline" \
|
return self.status['connectionStatus'] != "online"
|
||||||
or self.status['connectionStatus'] == "bridgeOffline" \
|
|
||||||
or self.status['connectionStatus'] == "error" \
|
|
||||||
or self.status['connectionStatus'] == "unknown"
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
Loading…
Reference in New Issue