aboutsummaryrefslogtreecommitdiff
path: root/LightInstallation.py
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2011-01-10 23:24:02 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2011-01-10 23:24:02 -0500
commitaaf8bdbee7fdc1d4721f43307fc824c373c69ec4 (patch)
treeee22f0ac45dede7fa8263cfc91f2730b19d07da9 /LightInstallation.py
parenta1969e4c4bf61bc6e73c6a59fbef96e8ce361611 (diff)
some improvements to behavior chain. A "Square" Behavior
Diffstat (limited to 'LightInstallation.py')
-rw-r--r--LightInstallation.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/LightInstallation.py b/LightInstallation.py
index aaedcf2..2726005 100644
--- a/LightInstallation.py
+++ b/LightInstallation.py
@@ -79,12 +79,8 @@ class LightInstallation:
self.renderers = self.initializeComponent(rendererConfig)
def registerComponents(self, components):
for component in components:
- cid = component['Id']
- if cid == None: #TODO: determine if componenent is critical, and if so, die
- main_log.error('Components must be registered with Ids. Component not registered')
- else:
- compReg.registerComponent(component)
- main_log.debug(cid + ' registered')
+ cid = compReg.registerComponent(component)
+ main_log.debug(cid + ' registered')
def initializeComponent(self, config):
components = []
if config != None: