Home Assistant Unofficial Reference
2024.12.1
application_credentials.py
Go to the documentation of this file.
1
"""Application credentials platform for spotify."""
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
authorize_url=
"https://accounts.spotify.com/authorize"
,
11
token_url=
"https://accounts.spotify.com/api/token"
,
12
)
homeassistant.components.application_credentials.AuthorizationServer
Definition:
__init__.py:75
homeassistant.components.application_credentials
Definition:
__init__.py:1
homeassistant.components.spotify.application_credentials.async_get_authorization_server
AuthorizationServer async_get_authorization_server(HomeAssistant hass)
Definition:
application_credentials.py:7
homeassistant.core
Definition:
core.py:1
core
homeassistant
components
spotify
application_credentials.py
Generated by
1.9.1