Mercurial > code > home > repos > homeauto
changeset 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 | 6754aa8aab38 |
children | e9ed6159b5fa |
files | service/arduinoNode/devices.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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))