2022-08-17 22:49:11 +00:00
|
|
|
"""Application credentials platform for LaMetric."""
|
2024-03-08 14:01:29 +00:00
|
|
|
|
2022-08-17 22:49:11 +00:00
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
|
|
"""Return authorization server."""
|
|
|
|
return AuthorizationServer(
|
|
|
|
authorize_url="https://developer.lametric.com/api/v2/oauth2/authorize",
|
|
|
|
token_url="https://developer.lametric.com/api/v2/oauth2/token",
|
|
|
|
)
|