mirror of
https://github.com/home-assistant/core.git
synced 2025-07-02 10:57:09 +00:00
13 lines
447 B
Python
13 lines
447 B
Python
"""application_credentials platform for YouTube."""
|
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
"""Return authorization server."""
|
|
return AuthorizationServer(
|
|
"https://accounts.google.com/o/oauth2/v2/auth",
|
|
"https://oauth2.googleapis.com/token",
|
|
)
|