@classmethod
def device_by_name(cls, name):
    """Returns the Device with name from registered devices."""
    for dev in cls.devices:
        if dev.name == name:
            return dev
    raise IndexError('No Device with name ' + name)
