File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments