Files
project-work/home-assistant/homeassistant/components/lametric/application_credentials.py
2026-11-19 15:15:32 -05:00

13 lines
497 B
Python

"""Application credentials platform for LaMetric."""
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",
)