def process_connected_devices(results):
    """Process Connected Devices

    Args:
        results (Element): XML results from firewall

    Returns:
        devices_dict (dict): A dictionary containing hostnames, IP addresses, and models
    """
    xml_list = results.findall('./result/devices/entry')
    devices_dict = {}
    for device in xml_list:
        hostname = device.find('./hostname').text
        serial = device.find('./serial').text
        ip_address = device.find('./ip-address').text
        model = device.find('./model').text
        devices_dict[serial] = {'hostname': hostname, 'ip_address': ip_address, 'model': model}
    return devices_dict