diff --git a/kibot/kicad/v5_sch.py b/kibot/kicad/v5_sch.py index 9402b7de..881a8742 100644 --- a/kibot/kicad/v5_sch.py +++ b/kibot/kicad/v5_sch.py @@ -1476,13 +1476,9 @@ class Schematic(object): files.update(sch.sheet.get_files()) return list(files) - def get_components(self, exclude_power=True): - """ A list of all the components. """ - if exclude_power: - components = [c for c in self.components if not c.is_power] - else: # pragma: no cover (Internal) - # Currently unused - components = [c for c in self.components] + def get_components(self): + """ A list of all the components. Power excluded. """ + components = [c for c in self.components if not c.is_power] for sch in self.sheets: components.extend(sch.sheet.get_components(exclude_power)) components.sort(key=lambda g: g.ref)