1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-02 04:06:41 +01:00
Files
core/homeassistant/components/senz/application_credentials.py
T

15 lines
480 B
Python

"""Application credentials platform for senz."""
from pysenz import AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT
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=AUTHORIZATION_ENDPOINT,
token_url=TOKEN_ENDPOINT,
)