Skip to content

Commit

Permalink
change door update function
Browse files Browse the repository at this point in the history
  • Loading branch information
arraylabs committed Sep 7, 2018
1 parent 5d6f0c7 commit 7ecd484
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pymyq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,13 @@ def get_garage_doors(self):
return False;

def get_status(self, device_id):
"""List only MyQ garage door devices."""
#devices = self.get_devices()
"""Get only door states"""

if not self._logged_in:
self._logged_in = self.is_login_valid()

garage_state = False

# if devices != False:
# for device in devices:
# if device['MyQDeviceTypeName'] in self.SUPPORTED_DEVICE_TYPE_NAMES and device['MyQDeviceId'] == device_id:
# dev = {}
# for attribute in device['Attributes']:
# if attribute['AttributeDisplayName'] == 'doorstate':
# myq_garage_state = attribute['Value']
# garage_state = self.DOOR_STATE[myq_garage_state]

try:
doorstate = requests.get(
'https://{host_uri}/{device_attribute_get_endpoint}'.format(
Expand Down

0 comments on commit 7ecd484

Please sign in to comment.