(vendor_id=0x1038, product_id=None)
return PROFILES[profile_name]
Get the profile of the requested device.

    :param int vendor_id: The vendor id of the device (optional, by default
                          this is set to the SteelSeries vendor id
                          (``0x1038``)).
    :param int product_id: The product id of one of the supported device (e.g.
                           ``0x1702``).
    :raise UnsupportedDevice: The requested device is not supported by
                              rivalcfg.
    :rtype: dict

    >>> from rivalcfg import devices
    >>> devices.get_profile(vendor_id=0x1038, product_id=0x1702)
    {...'name': 'SteelSeries Rival 100'...}
Get the profile of the requested device.
Get the profile of the requested device .
def get_profile(vendor_id=0x1038, product_id=None):
    """Get the profile of the requested device.

    :param int vendor_id: The vendor id of the device (optional, by default
                          this is set to the SteelSeries vendor id
                          (``0x1038``)).
    :param int product_id: The product id of one of the supported device (e.g.
                           ``0x1702``).
    :raise UnsupportedDevice: The requested device is not supported by
                              rivalcfg.
    :rtype: dict

    >>> from rivalcfg import devices
    >>> devices.get_profile(vendor_id=0x1038, product_id=0x1702)
    {...'name': 'SteelSeries Rival 100'...}
    """
    if not product_id:
        raise ValueError("You must provide a product_id")
    profile_name = (vendor_id, product_id)
    if profile_name not in PROFILES:
        raise UnsupportedDevice(
            "The requested device is not supported (%x:%x)" % profile_name
        )
    return PROFILES[profile_name]
def get_profile ( vendor_id = 0x1038 , product_id = None ) : if not product_id : raise ValueError ( "You must provide a product_id" ) profile_name = ( vendor_id , product_id ) if profile_name not in PROFILES : raise UnsupportedDevice ( "The requested device is not supported (%x:%x)" % profile_name ) return PROFILES [ profile_name ]