From 87cecd4a4433ddd00b46a3c9bfdccf5afdb6bc44 Mon Sep 17 00:00:00 2001 From: Max Michels <6703026+maxmichels@users.noreply.github.com> Date: Thu, 21 May 2026 23:18:23 +0200 Subject: [PATCH] Replace duplicate constants with homeassistant.const imports (#171778) --- homeassistant/components/mcp_server/http.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/mcp_server/http.py b/homeassistant/components/mcp_server/http.py index 205684d0008..3af6fb4806a 100644 --- a/homeassistant/components/mcp_server/http.py +++ b/homeassistant/components/mcp_server/http.py @@ -41,7 +41,7 @@ from mcp.shared.message import SessionMessage from homeassistant.components import conversation from homeassistant.components.http import KEY_HASS, HomeAssistantView -from homeassistant.const import CONF_LLM_HASS_API +from homeassistant.const import CONF_LLM_HASS_API, CONTENT_TYPE_JSON from homeassistant.core import Context, HomeAssistant, callback from homeassistant.helpers import llm @@ -56,10 +56,6 @@ _LOGGER = logging.getLogger(__name__) STREAMABLE_API = "/api/mcp" TIMEOUT = 60 # Seconds -# Content types -# pylint: disable-next=home-assistant-duplicate-const -CONTENT_TYPE_JSON = "application/json" - # Legacy SSE endpoint SSE_API = f"/{DOMAIN}/sse" MESSAGES_API = f"/{DOMAIN}/messages/{{session_id}}"