Ignore deprecated open and close cover intents for LLMs (#118515)

pull/118518/head^2
tronikos 2024-05-30 13:29:13 -07:00 committed by GitHub
parent a5dc4cb1c7
commit 6d82cfa91a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
DOMAIN,
SERVICE_OPEN_COVER,
"Opened {}",
description="Opens a cover",
platforms={DOMAIN},
),
)
@ -29,6 +30,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
DOMAIN,
SERVICE_CLOSE_COVER,
"Closed {}",
description="Closes a cover",
platforms={DOMAIN},
),
)

View File

@ -14,6 +14,7 @@ from homeassistant.components.conversation.trace import (
ConversationTraceEventType,
async_conversation_trace_append,
)
from homeassistant.components.cover.intent import INTENT_CLOSE_COVER, INTENT_OPEN_COVER
from homeassistant.components.homeassistant.exposed_entities import async_should_expose
from homeassistant.components.intent import async_device_supports_timers
from homeassistant.components.weather.intent import INTENT_GET_WEATHER
@ -208,6 +209,8 @@ class AssistAPI(API):
IGNORE_INTENTS = {
INTENT_GET_TEMPERATURE,
INTENT_GET_WEATHER,
INTENT_OPEN_COVER, # deprecated
INTENT_CLOSE_COVER, # deprecated
intent.INTENT_GET_STATE,
intent.INTENT_NEVERMIND,
intent.INTENT_TOGGLE,