1
0
mirror of https://github.com/home-assistant/core.git synced 2026-03-01 06:16:29 +00:00
Files
core/homeassistant/components/spotify/application_credentials.py
2022-05-16 09:31:14 +02:00

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",
)