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):
166
166
return False ;
167
167
168
168
def get_status (self , device_id ):
169
- """List only MyQ garage door devices."""
170
- #devices = self.get_devices()
169
+ """Get only door states"""
171
170
172
171
if not self ._logged_in :
173
172
self ._logged_in = self .is_login_valid ()
174
173
175
174
garage_state = False
176
175
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
-
186
176
try :
187
177
doorstate = requests .get (
188
178
'https://{host_uri}/{device_attribute_get_endpoint}' .format (
You can’t perform that action at this time.
0 commit comments