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 f3272dc commit 41f623c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymyq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def get_status(self, device_id):
'MyQApplicationId': self.BRAND_MAPPINGS[self.brand][self.APP_ID],
'SecurityToken': self.security_token
},
query={
params={
'AttributName': 'doorstate',
'MyQDeviceId': device_id
}
Expand All @@ -205,7 +205,7 @@ def get_status(self, device_id):
return False

doorstate = doorstate['AttributeValue']

garage_state = self.DOOR_STATE[doorstate]

return garage_state
Expand Down

0 comments on commit 41f623c

Please sign in to comment.