Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """Application credentials platform for LaMetric."""
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://developer.lametric.com/api/v2/oauth2/authorize",
11  token_url="https://developer.lametric.com/api/v2/oauth2/token",
12  )
AuthorizationServer async_get_authorization_server(HomeAssistant hass)