Skip to content

Commit

Permalink
fix doorstate json response
Browse files Browse the repository at this point in the history
  • Loading branch information
arraylabs authored Oct 9, 2018
1 parent 7ecd484 commit ce4a102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymyq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_status(self, device_id):
self.logger.error("MyQ - API Error[get_status] %s", ex)
return False

doorstate = doorstate['AttributeValue']
doorstate = doorstate.json()['AttributeValue']

garage_state = self.DOOR_STATE[doorstate]

Expand Down

0 comments on commit ce4a102

Please sign in to comment.