summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doorwatch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doorwatch.py b/doorwatch.py
index 64a9fbd..1e83848 100644
--- a/doorwatch.py
+++ b/doorwatch.py
@@ -34,6 +34,8 @@ if __name__ == '__main__':
r.close()
last_ref = data['ref']
+ data = data['data']
+
closed = data['door.left']['value']
if was_closed and not closed:
print "Door has been opened!"