changeset 172:715c1c42185e

obey ActiveLowOutput correctly Ignore-this: d8423b272f210a6fbbd9b35772bf7065
author drewp@bigasterisk.com
date Fri, 17 Apr 2015 01:03:52 -0700
parents 4d2df276baae
children 0daa8cbbd8f6
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))