Language: Python
Label: vulnerable
CWE: NVD-CWE-noinfo \u2014 

Code:
async def test_fetch_auth_providers_home_assistant_person_loaded(
    hass: HomeAssistant,
    aiohttp_client: ClientSessionGenerator,
    ip: str,
    is_local: bool,
) -> None:
    """Test fetching auth providers for homeassistant auth provider, where person integration is loaded."""
    domain = "person"
    config = {domain: {"id": "1234", "name": "test person"}}
    assert await async_setup_component(hass, domain, config)

    await _test_fetch_auth_providers_home_assistant(
        hass,
        aiohttp_client,
        ip,
        lambda user: {"users": {user.id: user.name}} if is_local else {},
    )