Fix flaky mcp_server tests with Python 3.14.3 (#169385)

This commit is contained in:
epenet
2026-04-28 22:13:06 -07:00
committed by GitHub
parent d956af095e
commit 4c70fef2da
2 changed files with 8 additions and 1 deletions
@@ -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",
+7
View File
@@ -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."""