Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid errors when using on-network commissioning (project-chip#33880)
When on network commissioning is used from Python we currently don't stop discovery even though we already found a device. Future devices found won't be processed, so it is fine to stop discovery of commissionable nodes at this point. Also avoid "Unknown filter type; all matches will fail" errors in the log: If the filter type is set to None, it wasn't the SetUpCodePairer which set up the discovery. Avoid printing errors in this case. A potential alternative to this would be to skip notifying the SetUpCodePairer in DeviceCommissioner::OnNodeDiscovered in this case.
- Loading branch information