aboutsummaryrefslogtreecommitdiff
path: root/LightInstallation.py
diff options
context:
space:
mode:
Diffstat (limited to 'LightInstallation.py')
-rwxr-xr-xLightInstallation.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/LightInstallation.py b/LightInstallation.py
index 19d6c54..3f9500f 100755
--- a/LightInstallation.py
+++ b/LightInstallation.py
@@ -182,8 +182,11 @@ class LightInstallation(object):
def processResponse(self,inputDict, responseDict):
inputId = inputDict['Id']
boundBehaviorIds = self.inputBehaviorRegistry[inputId]
+ if not isinstance(responseDict, list):
+ responseDict = [responseDict]
try:
- [compReg.getComponent(b).addInput(responseDict) for b in boundBehaviorIds]
+ for r in responseDict:
+ [compReg.getComponent(b).addInput(r) for b in boundBehaviorIds]
except:
pass
#Behavior run before loading. Not a big deal.