Ignore deprecated open and close cover intents for LLMs (#118515)
parent
a5dc4cb1c7
commit
6d82cfa91a
|
@ -19,6 +19,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_OPEN_COVER,
|
SERVICE_OPEN_COVER,
|
||||||
"Opened {}",
|
"Opened {}",
|
||||||
|
description="Opens a cover",
|
||||||
platforms={DOMAIN},
|
platforms={DOMAIN},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -29,6 +30,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_CLOSE_COVER,
|
SERVICE_CLOSE_COVER,
|
||||||
"Closed {}",
|
"Closed {}",
|
||||||
|
description="Closes a cover",
|
||||||
platforms={DOMAIN},
|
platforms={DOMAIN},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,6 +14,7 @@ from homeassistant.components.conversation.trace import (
|
||||||
ConversationTraceEventType,
|
ConversationTraceEventType,
|
||||||
async_conversation_trace_append,
|
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.homeassistant.exposed_entities import async_should_expose
|
||||||
from homeassistant.components.intent import async_device_supports_timers
|
from homeassistant.components.intent import async_device_supports_timers
|
||||||
from homeassistant.components.weather.intent import INTENT_GET_WEATHER
|
from homeassistant.components.weather.intent import INTENT_GET_WEATHER
|
||||||
|
@ -208,6 +209,8 @@ class AssistAPI(API):
|
||||||
IGNORE_INTENTS = {
|
IGNORE_INTENTS = {
|
||||||
INTENT_GET_TEMPERATURE,
|
INTENT_GET_TEMPERATURE,
|
||||||
INTENT_GET_WEATHER,
|
INTENT_GET_WEATHER,
|
||||||
|
INTENT_OPEN_COVER, # deprecated
|
||||||
|
INTENT_CLOSE_COVER, # deprecated
|
||||||
intent.INTENT_GET_STATE,
|
intent.INTENT_GET_STATE,
|
||||||
intent.INTENT_NEVERMIND,
|
intent.INTENT_NEVERMIND,
|
||||||
intent.INTENT_TOGGLE,
|
intent.INTENT_TOGGLE,
|
||||||
|
|
Loading…
Reference in New Issue