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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user