mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add original message as dialogflow_query parameter (#15304)
So you can access for example sessionId as {{ dialogflow_query.sessionId }} in intent templates.
This commit is contained in:
parent
dabbd7bd63
commit
bd62248841
@ -99,7 +99,8 @@ async def async_handle_message(hass, message):
|
||||
return None
|
||||
|
||||
action = req.get('action', '')
|
||||
parameters = req.get('parameters')
|
||||
parameters = req.get('parameters').copy()
|
||||
parameters["dialogflow_query"] = message
|
||||
dialogflow_response = DialogflowResponse(parameters)
|
||||
|
||||
if action == "":
|
||||
|
Loading…
x
Reference in New Issue
Block a user