Put these two maxpat inside two bpatchers.
First the "SelectThisDevice.maxpat" (I should named it using the plural for "device" but…) and then connect its outlet to M4L.api.SelectParameterSmall.maxpat" inlet.