Various changes
[kiosk.git] / myq_renderer.py
index 91e946b9a621291046e56f4e681f2eb80ce9bd74..ca405346dc10f88d98689886ae198ecd98195e8b 100644 (file)
@@ -89,7 +89,7 @@ class garage_door_renderer(renderer.debuggable_abstaining_renderer):
                 hours = divmod(days[1], constants.seconds_per_hour)
                 minutes = divmod(hours[1], constants.seconds_per_minute)
                 width = 0
-                if is_night and door.get_status() == "open":
+                if is_night and door.state == "open":
                     color = "border-color: #ff0000;"
                     width = 15
                 else:
@@ -115,6 +115,6 @@ class garage_door_renderer(renderer.debuggable_abstaining_renderer):
         return None
 
 # Test
-#x = garage_door_renderer({"Test" : 1})
-#x.periodic_render("Poll MyQ")
-#x.periodic_render("Update Page")
+x = garage_door_renderer({"Test" : 1})
+x.periodic_render("Poll MyQ")
+x.periodic_render("Update Page")