mirror of https://github.com/home-assistant/core
16 lines
523 B
Python
16 lines
523 B
Python
"""application_credentials platform the Monzo integration."""
|
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
OAUTH2_AUTHORIZE = "https://auth.monzo.com"
|
|
OAUTH2_TOKEN = "https://api.monzo.com/oauth2/token"
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
"""Return authorization server."""
|
|
return AuthorizationServer(
|
|
authorize_url=OAUTH2_AUTHORIZE,
|
|
token_url=OAUTH2_TOKEN,
|
|
)
|