Check for nearby component in config

Line was accidentally removed in ag/21444756

Slight refactor to test the class as well.

Bug: 270276629
Test: atest ChooserIntegratedDeviceComponentsTest
Change-Id: I8bcbb5820ea366fb475b5124e612a60f6f1d1501
4 files changed