def _find_provider(hass, prov_type):
    """Return provider for type."""
    for provider in hass.auth.auth_providers:
        if provider.type == prov_type:
            return provider
    return None