Skip to content

Commit 7ecd484

Browse files
committed
change door update function
1 parent 5d6f0c7 commit 7ecd484

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pymyq/__init__.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,23 +166,13 @@ def get_garage_doors(self):
166166
return False;
167167

168168
def get_status(self, device_id):
169-
"""List only MyQ garage door devices."""
170-
#devices = self.get_devices()
169+
"""Get only door states"""
171170

172171
if not self._logged_in:
173172
self._logged_in = self.is_login_valid()
174173

175174
garage_state = False
176175

177-
# if devices != False:
178-
# for device in devices:
179-
# if device['MyQDeviceTypeName'] in self.SUPPORTED_DEVICE_TYPE_NAMES and device['MyQDeviceId'] == device_id:
180-
# dev = {}
181-
# for attribute in device['Attributes']:
182-
# if attribute['AttributeDisplayName'] == 'doorstate':
183-
# myq_garage_state = attribute['Value']
184-
# garage_state = self.DOOR_STATE[myq_garage_state]
185-
186176
try:
187177
doorstate = requests.get(
188178
'https://{host_uri}/{device_attribute_get_endpoint}'.format(

0 commit comments

Comments
 (0)