def get_device_by_id(self, device_id):
<EOL>found_device = None<EOL>for device in self.get_devices():<EOL><INDENT>if device.device_id == device_id:<EOL><INDENT>found_device = device<EOL>break<EOL><DEDENT><DEDENT>if found_device is None:<EOL><INDENT>logger.debug('<STR_LIT>'.format(device_id))<EOL><DEDENT>return found_device<EOL>
Search the list of connected devices by ID.

        device_id param is the integer ID of the device