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 @@ -494,7 +494,6 @@ def _create_components(self):
494
494
for cname , component in components :
495
495
self ._components .append (component )
496
496
setup_tunables (component , cname , "components" )
497
- self ._feedbacks += collect_feedbacks (component , cname , "components" )
498
497
self ._setup_vars (cname , component )
499
498
self ._setup_reset_vars (component )
500
499
@@ -510,8 +509,11 @@ def _create_components(self):
510
509
511
510
# Call setup functions for components
512
511
for cname , component in components :
513
- if hasattr (component , "setup" ):
514
- component .setup ()
512
+ setup = getattr (component , "setup" , None )
513
+ if setup is not None :
514
+ setup ()
515
+ # ... and grab all the feedback methods
516
+ self ._feedbacks += collect_feedbacks (component , cname , "components" )
515
517
516
518
# Call setup functions for autonomous modes
517
519
for mode in self ._automodes .modes .values ():
You can’t perform that action at this time.
0 commit comments