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

Namespaces

 config_flow
 
 const
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
web.Response handle_webhook (HomeAssistant hass, str webhook_id, web.Request request)
 

Variables

 async_remove_entry = config_entry_flow.webhook_async_remove_entry
 
string CONF_ACCOUNT_SID = "account_sid"
 
string CONF_AUTH_TOKEN = "auth_token"
 
 CONFIG_SCHEMA
 
 DATA_TWILIO = DOMAIN
 
string RECEIVED_DATA = f"{DOMAIN}_data_received"
 

Detailed Description

Support for Twilio.

Function Documentation

◆ async_setup()

bool homeassistant.components.twilio.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the Twilio component.

Definition at line 37 of file __init__.py.

◆ async_setup_entry()

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

Definition at line 60 of file __init__.py.

◆ async_unload_entry()

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

Definition at line 68 of file __init__.py.

◆ handle_webhook()

web.Response homeassistant.components.twilio.handle_webhook ( HomeAssistant  hass,
str  webhook_id,
web.Request   request 
)
Handle incoming webhook from Twilio for inbound messages and calls.

Definition at line 49 of file __init__.py.

Variable Documentation

◆ async_remove_entry

homeassistant.components.twilio.async_remove_entry = config_entry_flow.webhook_async_remove_entry

Definition at line 74 of file __init__.py.

◆ CONF_ACCOUNT_SID

string homeassistant.components.twilio.CONF_ACCOUNT_SID = "account_sid"

Definition at line 17 of file __init__.py.

◆ CONF_AUTH_TOKEN

string homeassistant.components.twilio.CONF_AUTH_TOKEN = "auth_token"

Definition at line 18 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.twilio.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(DOMAIN): vol.Schema(
4  {
5  vol.Required(CONF_ACCOUNT_SID): cv.string,
6  vol.Required(CONF_AUTH_TOKEN): cv.string,
7  }
8  )
9  },
10  extra=vol.ALLOW_EXTRA,
11 )

Definition at line 24 of file __init__.py.

◆ DATA_TWILIO

homeassistant.components.twilio.DATA_TWILIO = DOMAIN

Definition at line 20 of file __init__.py.

◆ RECEIVED_DATA

string homeassistant.components.twilio.RECEIVED_DATA = f"{DOMAIN}_data_received"

Definition at line 22 of file __init__.py.