Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """application_credentials platform for YouTube."""
2 
3 from homeassistant.components.application_credentials import AuthorizationServer
4 from homeassistant.core import HomeAssistant
5 
6 
7 async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
8  """Return authorization server."""
9  return AuthorizationServer(
10  "https://accounts.google.com/o/oauth2/v2/auth",
11  "https://oauth2.googleapis.com/token",
12  )
AuthorizationServer async_get_authorization_server(HomeAssistant hass)