changeset 883:27805f8d3354

old fix to frontDoorArduino for door state. i think this is unused Ignore-this: 47a644e0bb5f862841fb7ecc4d66d2c4 darcs-hash:20130529073439-312f9-f526417aef390e3c6904ce8babb3c2fa3d407423
author drewp <drewp@bigasterisk.com>
date Wed, 29 May 2013 00:34:39 -0700
parents 1e2a3f85c61a
children ae4b016b07f2
files service/frontDoorArduino/frontDoorArduino.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/service/frontDoorArduino/frontDoorArduino.py	Wed May 29 00:34:09 2013 -0700
+++ b/service/frontDoorArduino/frontDoorArduino.py	Wed May 29 00:34:39 2013 -0700
@@ -101,7 +101,7 @@
 
         board = self.settings.board
         g.add((DEV['frontDoorOpen'], ROOM['state'],
-               ROOM['open'] if board.getDoor() else ROOM['closed']))
+               ROOM['open'] if board.getDoor() == 'open' else ROOM['closed']))
         g.add((DEV['frontYardLight'], ROOM['state'],
                ROOM['on'] if board.getYardLight() else ROOM['off']))
         g.add((DEV['frontDoorLcd'], ROOM['text'],