Skip to content

Commit

Permalink
Merge pull request #24 from twrecked/doorbell-base
Browse files Browse the repository at this point in the history
Allow video doorbell to not be a base.
  • Loading branch information
twrecked authored Apr 9, 2020
2 parents 96118e0 + 8a00e6d commit 347ae49
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyaarlo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,15 @@ def __init__(self, **kwargs):
self.info('skipping ' + dname + ': state unknown')
continue

# This needs it's own code now... Does no parent indicate a base station???
if dtype == 'basestation' or \
device.get('modelId') == 'ABC1000' or dtype == 'arloq' or dtype == 'arloqs' or \
device.get('modelId').startswith('AVD1001'):
device.get('modelId') == 'ABC1000' or dtype == 'arloq' or dtype == 'arloqs':
self._bases.append(ArloBase(dname, self, device))
# video doorbell can be its own base station, it can also be assigned to a real base station
if device.get('modelId').startswith('AVD1001'):
parent_id = device.get('parentId', None)
if parent_id is None or parent_id == device.get('deviceId', None):
self._bases.append(ArloBase(dname, self, device))
if dtype == 'arlobridge':
self._bases.append(ArloBase(dname, self, device))
if dtype == 'camera' or dtype == 'arloq' or dtype == 'arloqs' or \
Expand Down

0 comments on commit 347ae49

Please sign in to comment.