mirror of
https://github.com/home-assistant/core.git
synced 2026-05-30 20:24:21 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
16 lines
537 B
Python
16 lines
537 B
Python
"""Application credentials platform for iotty."""
|
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
OAUTH2_AUTHORIZE = "https://auth.iotty.com/.auth/oauth2/login"
|
|
OAUTH2_TOKEN = "https://auth.iotty.com/.auth/oauth2/token"
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
"""Return authorization server."""
|
|
return AuthorizationServer(
|
|
authorize_url=OAUTH2_AUTHORIZE,
|
|
token_url=OAUTH2_TOKEN,
|
|
)
|