Namespaces | |
| config_flow | |
| const | |
Classes | |
| class | DialogFlowError |
| class | DialogflowResponse |
Functions | |
| def | async_handle_message (hass, message) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| def | dialogflow_error_response (message, error) |
| def | get_api_version (message) |
| web.Response|None | handle_webhook (HomeAssistant hass, str webhook_id, web.Request request) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| async_remove_entry = config_entry_flow.webhook_async_remove_entry | |
| CONFIG_SCHEMA = vol.Schema({DOMAIN: {}}, extra=vol.ALLOW_EXTRA) | |
| string | SOURCE = "Home Assistant Dialogflow" |
| int | V1 = 1 |
| int | V2 = 2 |
Support for Dialogflow webhook.
| def homeassistant.components.dialogflow.async_handle_message | ( | hass, | |
| message | |||
| ) |
Handle a DialogFlow message.
Definition at line 109 of file __init__.py.
| bool homeassistant.components.dialogflow.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Configure based on config entry.
Definition at line 70 of file __init__.py.
| bool homeassistant.components.dialogflow.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 78 of file __init__.py.
| def homeassistant.components.dialogflow.dialogflow_error_response | ( | message, | |
| error | |||
| ) |
Return a response saying the error message.
Definition at line 87 of file __init__.py.
| def homeassistant.components.dialogflow.get_api_version | ( | message | ) |
Get API version of Dialogflow message.
Definition at line 99 of file __init__.py.
| web.Response | None homeassistant.components.dialogflow.handle_webhook | ( | HomeAssistant | hass, |
| str | webhook_id, | ||
| web.Request | request | ||
| ) |
Handle incoming webhook with Dialogflow requests.
Definition at line 31 of file __init__.py.
|
private |
Definition at line 17 of file __init__.py.
| homeassistant.components.dialogflow.async_remove_entry = config_entry_flow.webhook_async_remove_entry |
Definition at line 84 of file __init__.py.
| homeassistant.components.dialogflow.CONFIG_SCHEMA = vol.Schema({DOMAIN: {}}, extra=vol.ALLOW_EXTRA) |
Definition at line 21 of file __init__.py.
| string homeassistant.components.dialogflow.SOURCE = "Home Assistant Dialogflow" |
Definition at line 19 of file __init__.py.
| int homeassistant.components.dialogflow.V1 = 1 |
Definition at line 23 of file __init__.py.
| int homeassistant.components.dialogflow.V2 = 2 |
Definition at line 24 of file __init__.py.