mirror of
https://github.com/home-assistant/core.git
synced 2026-02-22 02:47:14 +00:00
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joostlek <joostlek@outlook.com>
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,
|
|
)
|