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

        device_name param is the string name of the device