Make conversation and intent context aware (#28965)

* WIP

* LINT
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2019-11-26 11:30:21 +01:00
1 parent 6c6a5c50a5
commit c76f768a82
9 files changed
+82 -57

No files matched your search

@@ -109,7 +109,7 @@ class DefaultAgent(AbstractConversationAgent):
async_register(self.hass, intent_type, sentences)
async def async_process(
self, text: str, conversation_id: Optional[str] = None
self, text: str, context: core.Context, conversation_id: Optional[str] = None
) -> intent.IntentResponse:
"""Process a sentence."""
intents = self.hass.data[DOMAIN]
@@ -127,4 +127,5 @@ class DefaultAgent(AbstractConversationAgent):
intent_type,
{key: {"value": value} for key, value in match.groupdict().items()},
text,
context,
)