Mercurial > code > home > repos > homeauto
diff service/arduinoNode/devices.py @ 977:03cfee8f9154
obey ActiveLowOutput correctly
Ignore-this: d8423b272f210a6fbbd9b35772bf7065
darcs-hash:20150417080352-312f9-b06c230dd59ff36706d8c76a75ef4f29430f9d5f
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 17 Apr 2015 01:03:52 -0700 |
parents | f3023410d875 |
children | f81c4d3d774b |
line wrap: on
line diff
--- a/service/arduinoNode/devices.py Tue Apr 14 02:01:51 2015 -0700 +++ b/service/arduinoNode/devices.py Fri Apr 17 01:03:52 2015 -0700 @@ -253,7 +253,7 @@ assert len(statements) == 1 assert statements[0][:2] == (self.uri, ROOM['brightness']) value = float(statements[0][2]) - if (self.uri, RDF.type, ROOM['ActiveLowOutput']): + if (self.uri, RDF.type, ROOM['ActiveLowOutput']) in self.graph: value = 1 - value write(byteFromFloat(value))