1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-15 07:36:16 +00:00

Use APPLICATION_CREDENTIALS_DOMAIN constant in tests (#162932)

This commit is contained in:
epenet
2026-02-13 15:47:38 +01:00
committed by GitHub
parent 4e71a38e31
commit 267caf2365
45 changed files with 94 additions and 50 deletions

View File

@@ -6,6 +6,7 @@ import pytest
from homeassistant import config_entries
from homeassistant.components.application_credentials import (
DOMAIN as APPLICATION_CREDENTIALS_DOMAIN,
ClientCredential,
async_import_client_credential,
)
@@ -25,7 +26,7 @@ CLIENT_SECRET = "5678"
@pytest.fixture
async def setup_credentials(hass: HomeAssistant) -> None:
"""Fixture to setup credentials."""
assert await async_setup_component(hass, "application_credentials", {})
assert await async_setup_component(hass, APPLICATION_CREDENTIALS_DOMAIN, {})
await async_import_client_credential(
hass,
DOMAIN,