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):
538
538
# For each new component, perform magic injection
539
539
for cname , component in components :
540
540
setup_tunables (component , cname , "components" )
541
- self ._feedbacks += collect_feedbacks (component , cname , "components" )
542
541
self ._setup_vars (cname , component )
543
542
self ._setup_reset_vars (component )
544
543
@@ -554,8 +553,11 @@ def _create_components(self):
554
553
555
554
# Call setup functions for components
556
555
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" )
559
561
560
562
# Call setup functions for autonomous modes
561
563
for mode in self ._automodes .modes .values ():
You can’t perform that action at this time.
0 commit comments