1 """Entity for conversation integration."""
3 from abc
import abstractmethod
4 from typing
import Literal, final
10 from .const
import ConversationEntityFeature
11 from .models
import ConversationInput, ConversationResult
15 """Entity that supports conversations."""
17 _attr_should_poll =
False
19 __last_activity: str |
None =
None
24 """Return the state of the entity."""
30 """Call when the entity is added to hass."""
35 and state.state
is not None
36 and state.state
not in (STATE_UNAVAILABLE, STATE_UNKNOWN)
42 self, user_input: ConversationInput
43 ) -> ConversationResult:
44 """Process a sentence."""
52 """Return a list of supported languages."""
55 async
def async_process(self, user_input: ConversationInput) -> ConversationResult:
56 """Process a sentence."""
59 """Load intents for a language."""
ConversationResult internal_async_process(self, ConversationInput user_input)
list[str]|Literal["*"] supported_languages(self)
None async_internal_added_to_hass(self)
None async_prepare(self, str|None language=None)
ConversationResult async_process(self, ConversationInput user_input)
None async_write_ha_state(self)
State|None async_get_last_state(self)