Initial Home Assistant commit

This commit is contained in:
2026-06-05 22:34:31 -04:00
commit 6a58b10e6c
4494 changed files with 297833 additions and 0 deletions
@@ -0,0 +1,17 @@
"""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.
"""
# create a new authorization server instance for Spotify Web API usage.
auth_server:AuthorizationServer = AuthorizationServer(
authorize_url="https://accounts.spotify.com/authorize",
token_url="https://accounts.spotify.com/api/token",
)
return auth_server