mirror of
https://github.com/home-assistant/core.git
synced 2026-04-17 23:53:49 +01:00
Use APPLICATION_CREDENTIALS_DOMAIN constant in tests (#162932)
This commit is contained in:
@@ -8,6 +8,7 @@ import pytest
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.application_credentials import (
|
||||
DOMAIN as APPLICATION_CREDENTIALS_DOMAIN,
|
||||
ClientCredential,
|
||||
async_import_client_credential,
|
||||
)
|
||||
@@ -27,7 +28,7 @@ from tests.typing import ClientSessionGenerator
|
||||
@pytest.fixture
|
||||
async def setup_credentials(hass: HomeAssistant) -> None:
|
||||
"""Fixture to setup application credentials component."""
|
||||
await async_setup_component(hass, "application_credentials", {})
|
||||
await async_setup_component(hass, APPLICATION_CREDENTIALS_DOMAIN, {})
|
||||
await async_import_client_credential(
|
||||
hass,
|
||||
DOMAIN,
|
||||
|
||||
Reference in New Issue
Block a user