[Update_XML][Fixed] Components excluded from the board reported anyways

Closes #585
This commit is contained in:
Salvador E. Tropea 2024-03-04 10:29:49 -03:00
parent ea51835620
commit 2a0596e3fc
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Netlist generation problems with components on the PCB but not in schematic.
(#578)
- Filters: _none filter not always honored (i.e. exclude in BoM) (#580)
- PCB Parity: components excluded from the board reported anyways (#585)
## [1.6.4] - 2024-02-02
### Added

View File

@ -120,6 +120,8 @@ class Update_XML(BasePreFlight): # noqa: F821
for p in set(pcb_props.keys()).difference(found_props):
errors.append('{} PCB property `{}` not in schematic'.format(ref, p))
for ref in set(comps.keys()).difference(found_comps):
if 'exclude_from_board' in comps[ref].props:
continue
errors.append('{} found in schematic, but not in PCB'.format(ref))
return excluded