From ce4a102b57e0fcbaefb3736a1d6f1c1e64e61ec8 Mon Sep 17 00:00:00 2001 From: ArrayLabs Date: Tue, 9 Oct 2018 13:00:34 -0400 Subject: [PATCH] fix doorstate json response --- pymyq/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymyq/__init__.py b/pymyq/__init__.py index 1ed14f6..d955398 100644 --- a/pymyq/__init__.py +++ b/pymyq/__init__.py @@ -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]