mirror of
https://github.com/home-assistant/core.git
synced 2025-09-01 19:01:46 +02:00
Adjust intent integration
This commit is contained in:
@@ -87,13 +87,14 @@ class ScriptIntentHandler(intent.IntentHandler):
|
|||||||
|
|
||||||
if speech is not None:
|
if speech is not None:
|
||||||
response.async_set_speech(
|
response.async_set_speech(
|
||||||
speech[CONF_TEXT].async_render(slots), speech[CONF_TYPE]
|
speech[CONF_TEXT].async_render(slots, parse_result=False),
|
||||||
|
speech[CONF_TYPE],
|
||||||
)
|
)
|
||||||
|
|
||||||
if card is not None:
|
if card is not None:
|
||||||
response.async_set_card(
|
response.async_set_card(
|
||||||
card[CONF_TITLE].async_render(slots),
|
card[CONF_TITLE].async_render(slots, parse_result=False),
|
||||||
card[CONF_CONTENT].async_render(slots),
|
card[CONF_CONTENT].async_render(slots, parse_result=False),
|
||||||
card[CONF_TYPE],
|
card[CONF_TYPE],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user