mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Fix flaky mcp_server tests with Python 3.14.3 (#169385)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"name": "Model Context Protocol Server",
|
||||
"codeowners": ["@allenporter"],
|
||||
"config_flow": true,
|
||||
"dependencies": ["homeassistant", "http", "conversation"],
|
||||
"dependencies": ["http", "conversation"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/mcp_server",
|
||||
"integration_type": "service",
|
||||
"iot_class": "local_push",
|
||||
|
||||
@@ -9,10 +9,17 @@ from homeassistant.components.mcp_server.const import DOMAIN
|
||||
from homeassistant.const import CONF_LLM_HASS_API
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import llm
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
async def ensure_homeassistant_loaded(hass: HomeAssistant) -> None:
|
||||
"""Ensure homeassistant component is loaded."""
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
|
||||
Reference in New Issue
Block a user