Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dialogflow Namespace Reference

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
 

Detailed Description

Support for Dialogflow webhook.

Function Documentation

◆ async_handle_message()

def homeassistant.components.dialogflow.async_handle_message (   hass,
  message 
)
Handle a DialogFlow message.

Definition at line 109 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.dialogflow.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Configure based on config entry.

Definition at line 70 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.dialogflow.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 78 of file __init__.py.

◆ dialogflow_error_response()

def homeassistant.components.dialogflow.dialogflow_error_response (   message,
  error 
)
Return a response saying the error message.

Definition at line 87 of file __init__.py.

◆ get_api_version()

def homeassistant.components.dialogflow.get_api_version (   message)
Get API version of Dialogflow message.

Definition at line 99 of file __init__.py.

◆ handle_webhook()

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.

Variable Documentation

◆ _LOGGER

homeassistant.components.dialogflow._LOGGER = logging.getLogger(__name__)
private

Definition at line 17 of file __init__.py.

◆ async_remove_entry

homeassistant.components.dialogflow.async_remove_entry = config_entry_flow.webhook_async_remove_entry

Definition at line 84 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.dialogflow.CONFIG_SCHEMA = vol.Schema({DOMAIN: {}}, extra=vol.ALLOW_EXTRA)

Definition at line 21 of file __init__.py.

◆ SOURCE

string homeassistant.components.dialogflow.SOURCE = "Home Assistant Dialogflow"

Definition at line 19 of file __init__.py.

◆ V1

int homeassistant.components.dialogflow.V1 = 1

Definition at line 23 of file __init__.py.

◆ V2

int homeassistant.components.dialogflow.V2 = 2

Definition at line 24 of file __init__.py.