original_docstring: Set up authentication and create an HTTP client.
docstring: Set up authentication and create an HTTP client.
docstring_tokens: Set up authentication and create an HTTP client .
code: async def async_setup_auth(
      hass,
      aiohttp_client,
      provider_configs=BASE_CONFIG,
      module_configs=EMPTY_CONFIG,
      setup_api=False,
  ):
      """Set up authentication and create an HTTP client."""
      hass.auth = await auth.auth_manager_from_config(
          hass, provider_configs, module_configs
      )
      ensure_auth_manager_loaded(hass.auth)
      await async_setup_component(hass, "auth", {})
      if setup_api:
          await async_setup_component(hass, "api", {})
      return await aiohttp_client(hass.http.app)
code_tokens: async def async_setup_auth ( hass , aiohttp_client , provider_configs = BASE_CONFIG , module_configs = EMPTY_CONFIG , setup_api = False , ) : hass . auth = await auth . auth_manager_from_config ( hass , provider_configs , module_configs ) ensure_auth_manager_loaded ( hass . auth ) await async_setup_component ( hass , "auth" , { } ) if setup_api : await async_setup_component ( hass , "api" , { } ) return await aiohttp_client ( hass . http . app )
short_docstring: Set up authentication and create an HTTP client.
short_docstring_tokens: Set up authentication and create an HTTP client .
comment: """Set up authentication and create an HTTP client."""