Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """Application credentials platform for senz."""
2 
3 from aiosenz import AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT
4 
5 from homeassistant.components.application_credentials import AuthorizationServer
6 from homeassistant.core import HomeAssistant
7 
8 
9 async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
10  """Return authorization server."""
11  return AuthorizationServer(
12  authorize_url=AUTHORIZATION_ENDPOINT,
13  token_url=TOKEN_ENDPOINT,
14  )
AuthorizationServer async_get_authorization_server(HomeAssistant hass)