diff service/arduinoNode/devices.py @ 1038:ffe6a00c6cef

server/browser graph sync. cut dependency on the WS version. merge some changes between arduino/pi code. Ignore-this: cf7d20d54e134e8ff33a9ee405610846 darcs-hash:b4350a6308480857b2846a8518190b956981eef4
author drewp <drewp@bigasterisk.com>
date Sat, 30 Jan 2016 06:40:00 -0800
parents f01d9892ed79
children 254df9f881a6
line wrap: on
line diff
--- a/service/arduinoNode/devices.py	Thu Jan 28 02:48:54 2016 -0800
+++ b/service/arduinoNode/devices.py	Sat Jan 30 06:40:00 2016 -0800
@@ -51,7 +51,7 @@
         return {
             'uri': self.uri,
             'className': self.__class__.__name__,
-            'pinNumber': self.pinNumber,
+            'pinNumber': getattr(self, 'pinNumber', None),
             'outputPatterns': self.outputPatterns(),
             'watchPrefixes': self.watchPrefixes(),
             'outputWidgets': self.outputWidgets(),