mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 22:40:44 +00:00
16 lines
548 B
Python
16 lines
548 B
Python
"""Application credentials platform for Tibber."""
|
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
AUTHORIZE_URL = "https://thewall.tibber.com/connect/authorize"
|
|
TOKEN_URL = "https://thewall.tibber.com/connect/token"
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
"""Return authorization server for Tibber Data API."""
|
|
return AuthorizationServer(
|
|
authorize_url=AUTHORIZE_URL,
|
|
token_url=TOKEN_URL,
|
|
)
|