1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 02:48:57 +00:00
Files
core/tests/components/watts/test_application_credentials.py
theobld-ww c2440c4ebd Add Watts Vision + integration with tests (#153022)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2025-12-18 17:41:23 +01:00

16 lines
582 B
Python

"""Test application credentials for Watts integration."""
from homeassistant.components.watts.application_credentials import (
async_get_authorization_server,
)
from homeassistant.components.watts.const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN
from homeassistant.core import HomeAssistant
async def test_async_get_authorization_server(hass: HomeAssistant) -> None:
"""Test getting authorization server."""
auth_server = await async_get_authorization_server(hass)
assert auth_server.authorize_url == OAUTH2_AUTHORIZE
assert auth_server.token_url == OAUTH2_TOKEN