|
| None | __init__ (self, dict[str, Any] request) |
| |
| AlexaResponse | error (self, str namespace="Alexa", str error_type="INTERNAL_ERROR", str error_message="", dict[str, Any]|None payload=None) |
| |
| None | load_entity (self, HomeAssistant hass, AbstractConfig config) |
| |
| AlexaResponse | response (self, str name="Response", str namespace="Alexa", dict[str, Any]|None payload=None) |
| |
An incoming Alexa directive.
Definition at line 56 of file state_report.py.
◆ __init__()
| None homeassistant.components.alexa.state_report.AlexaDirective.__init__ |
( |
|
self, |
|
|
dict[str, Any] |
request |
|
) |
| |
◆ error()
| AlexaResponse homeassistant.components.alexa.state_report.AlexaDirective.error |
( |
|
self, |
|
|
str |
namespace = "Alexa", |
|
|
str |
error_type = "INTERNAL_ERROR", |
|
|
str |
error_message = "", |
|
|
dict[str, Any] | None |
payload = None |
|
) |
| |
Create a API formatted error response.
Async friendly.
Definition at line 122 of file state_report.py.
◆ load_entity()
Set attributes related to the entity for this request.
Sets these attributes when self.has_endpoint is True:
- entity
- entity_id
- endpoint
- instance (when header includes instance property)
Behavior when self.has_endpoint is False is undefined.
Will raise AlexaInvalidEndpointError if the endpoint in the request is
malformed or nonexistent.
Definition at line 74 of file state_report.py.
◆ response()
| AlexaResponse homeassistant.components.alexa.state_report.AlexaDirective.response |
( |
|
self, |
|
|
str |
name = "Response", |
|
|
str |
namespace = "Alexa", |
|
|
dict[str, Any] | None |
payload = None |
|
) |
| |
Create an API formatted response.
Async friendly.
Definition at line 101 of file state_report.py.
◆ endpoint
| homeassistant.components.alexa.state_report.AlexaDirective.endpoint |
◆ entity
| homeassistant.components.alexa.state_report.AlexaDirective.entity |
◆ entity_id
| homeassistant.components.alexa.state_report.AlexaDirective.entity_id |
◆ instance
| homeassistant.components.alexa.state_report.AlexaDirective.instance |
The documentation for this class was generated from the following file: