mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
13 lines
468 B
Python
13 lines
468 B
Python
"""Application credentials platform for spotify."""
|
|
|
|
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(
|
|
authorize_url="https://accounts.spotify.com/authorize",
|
|
token_url="https://accounts.spotify.com/api/token",
|
|
)
|