diff --git a/homeassistant/components/conversation/manifest.json b/homeassistant/components/conversation/manifest.json index 0221d80002c..209f239df00 100644 --- a/homeassistant/components/conversation/manifest.json +++ b/homeassistant/components/conversation/manifest.json @@ -2,7 +2,7 @@ "domain": "conversation", "name": "Conversation", "codeowners": ["@home-assistant/core", "@synesthesiam"], - "dependencies": ["homeassistant", "http"], + "dependencies": ["http"], "documentation": "https://www.home-assistant.io/integrations/conversation", "integration_type": "system", "iot_class": "local_push", diff --git a/tests/components/assist_pipeline/conftest.py b/tests/components/assist_pipeline/conftest.py index 1df52859ed9..54dc3705d2a 100644 --- a/tests/components/assist_pipeline/conftest.py +++ b/tests/components/assist_pipeline/conftest.py @@ -243,6 +243,7 @@ async def init_supporting_components( ) mock_platform(hass, "test.config_flow") + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, tts.DOMAIN, {"tts": {"platform": "test"}}) assert await async_setup_component(hass, stt.DOMAIN, {"stt": {"platform": "test"}}) assert await async_setup_component(hass, "media_source", {}) diff --git a/tests/components/assist_pipeline/test_pipeline.py b/tests/components/assist_pipeline/test_pipeline.py index 4c71b4aedbd..f6a62a630d2 100644 --- a/tests/components/assist_pipeline/test_pipeline.py +++ b/tests/components/assist_pipeline/test_pipeline.py @@ -25,6 +25,12 @@ from .conftest import MockSttPlatform, MockSttProvider, MockTTSPlatform, MockTTS from tests.common import MockModule, flush_store, mock_integration, mock_platform +@pytest.fixture(autouse=True) +async def load_homeassistant(hass) -> None: + """Load the homeassistant integration.""" + assert await async_setup_component(hass, "homeassistant", {}) + + async def test_load_datasets(hass: HomeAssistant, init_components) -> None: """Make sure that we can load/save data correctly.""" diff --git a/tests/components/conversation/test_init.py b/tests/components/conversation/test_init.py index 4d49b2d21ea..6b981cbbdfa 100644 --- a/tests/components/conversation/test_init.py +++ b/tests/components/conversation/test_init.py @@ -1162,6 +1162,7 @@ async def test_ws_api( hass: HomeAssistant, hass_ws_client: WebSocketGenerator, payload ) -> None: """Test the Websocket conversation API.""" + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, "conversation", {}) client = await hass_ws_client(hass) @@ -1192,6 +1193,7 @@ async def test_ws_prepare( hass: HomeAssistant, hass_ws_client: WebSocketGenerator, agent_id ) -> None: """Test the Websocket prepare conversation API.""" + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, "conversation", {}) agent = await conversation._get_agent_manager(hass).async_get_agent() assert isinstance(agent, conversation.DefaultAgent) @@ -1320,6 +1322,7 @@ async def test_custom_sentences_config( async def test_prepare_reload(hass: HomeAssistant) -> None: """Test calling the reload service.""" language = hass.config.language + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, "conversation", {}) # Load intents @@ -1340,6 +1343,7 @@ async def test_prepare_reload(hass: HomeAssistant) -> None: async def test_prepare_fail(hass: HomeAssistant) -> None: """Test calling prepare with a non-existent language.""" + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, "conversation", {}) # Load intents @@ -1387,6 +1391,7 @@ async def test_language_region( async def test_reload_on_new_component(hass: HomeAssistant) -> None: """Test intents being reloaded when a new component is loaded.""" language = hass.config.language + assert await async_setup_component(hass, "homeassistant", {}) assert await async_setup_component(hass, "conversation", {}) # Load intents diff --git a/tests/components/esphome/conftest.py b/tests/components/esphome/conftest.py index a70686acbf6..4c01c2f7c5a 100644 --- a/tests/components/esphome/conftest.py +++ b/tests/components/esphome/conftest.py @@ -15,6 +15,7 @@ from homeassistant.components.esphome import ( ) from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PORT from homeassistant.core import HomeAssistant +from homeassistant.setup import async_setup_component from . import DASHBOARD_HOST, DASHBOARD_PORT, DASHBOARD_SLUG @@ -31,6 +32,12 @@ def esphome_mock_async_zeroconf(mock_async_zeroconf): """Auto mock zeroconf.""" +@pytest.fixture(autouse=True) +async def load_homeassistant(hass) -> None: + """Load the homeassistant integration.""" + assert await async_setup_component(hass, "homeassistant", {}) + + @pytest.fixture def mock_config_entry(hass) -> MockConfigEntry: """Return the default mocked config entry.""" diff --git a/tests/components/voip/conftest.py b/tests/components/voip/conftest.py index 80d8eaa11c3..499d454cf4d 100644 --- a/tests/components/voip/conftest.py +++ b/tests/components/voip/conftest.py @@ -16,6 +16,12 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry +@pytest.fixture(autouse=True) +async def load_homeassistant(hass) -> None: + """Load the homeassistant integration.""" + assert await async_setup_component(hass, "homeassistant", {}) + + @pytest.fixture def config_entry(hass: HomeAssistant) -> MockConfigEntry: """Create a config entry."""