def _param_in_list(keys: str | tuple[str, ...], name: str, do_wildcard_compare: bool = False) -> bool:
    """Return if parameter is in set."""
    if isinstance(keys, str):
        if do_wildcard_compare:
            return keys.lower() in name.lower()
        return keys.lower() == name.lower()
    if isinstance(keys, tuple):
        for key in keys:
            if (do_wildcard_compare and key.lower() in name.lower()) or key.lower() == name.lower():
                return True
    return False
Return if parameter is in set.
custom_components/homematicip_local/entity_helpers.py