|
| None | __init__ (self, HomeAssistant hass, dict[str, Any]|None intent_info) |
| |
| None | add_card (self, CardType card_type, str title, str content) |
| |
| None | add_reprompt (self, SpeechType speech_type, str text) |
| |
| None | add_speech (self, SpeechType speech_type, str text) |
| |
| dict[str, Any] | as_dict (self) |
| |
Help generating the response for Alexa.
Definition at line 240 of file intent.py.
◆ __init__()
| None homeassistant.components.alexa.intent.AlexaIntentResponse.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
dict[str, Any] | None |
intent_info |
|
) |
| |
Initialize the response.
Definition at line 243 of file intent.py.
◆ add_card()
| None homeassistant.components.alexa.intent.AlexaIntentResponse.add_card |
( |
|
self, |
|
|
CardType |
card_type, |
|
|
str |
title, |
|
|
str |
content |
|
) |
| |
Add a card to the response.
Definition at line 266 of file intent.py.
◆ add_reprompt()
| None homeassistant.components.alexa.intent.AlexaIntentResponse.add_reprompt |
( |
|
self, |
|
|
SpeechType |
speech_type, |
|
|
str |
text |
|
) |
| |
Add reprompt if user does not answer.
Definition at line 288 of file intent.py.
◆ add_speech()
| None homeassistant.components.alexa.intent.AlexaIntentResponse.add_speech |
( |
|
self, |
|
|
SpeechType |
speech_type, |
|
|
str |
text |
|
) |
| |
Add speech to the response.
Definition at line 280 of file intent.py.
◆ as_dict()
| dict[str, Any] homeassistant.components.alexa.intent.AlexaIntentResponse.as_dict |
( |
|
self | ) |
|
Return response in an Alexa valid dict.
Definition at line 298 of file intent.py.
◆ card
| homeassistant.components.alexa.intent.AlexaIntentResponse.card |
◆ hass
| homeassistant.components.alexa.intent.AlexaIntentResponse.hass |
◆ reprompt
| homeassistant.components.alexa.intent.AlexaIntentResponse.reprompt |
◆ should_end_session
| homeassistant.components.alexa.intent.AlexaIntentResponse.should_end_session |
◆ speech
| homeassistant.components.alexa.intent.AlexaIntentResponse.speech |
The documentation for this class was generated from the following file:
- core/homeassistant/components/alexa/intent.py