File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -538,7 +538,6 @@ def _create_components(self):
538538 # For each new component, perform magic injection
539539 for cname , component in components :
540540 setup_tunables (component , cname , "components" )
541- self ._feedbacks += collect_feedbacks (component , cname , "components" )
542541 self ._setup_vars (cname , component )
543542 self ._setup_reset_vars (component )
544543
@@ -554,8 +553,11 @@ def _create_components(self):
554553
555554 # Call setup functions for components
556555 for cname , component in components :
557- if hasattr (component , "setup" ):
558- component .setup ()
556+ setup = getattr (component , "setup" , None )
557+ if setup is not None :
558+ setup ()
559+ # ... and grab all the feedback methods
560+ self ._feedbacks += collect_feedbacks (component , cname , "components" )
559561
560562 # Call setup functions for autonomous modes
561563 for mode in self ._automodes .modes .values ():
You can’t perform that action at this time.
0 commit comments