mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Automatically generate config flow list (#23802)
* Add config flow to manifest.json * Still load config flows via config flow platform * Fix typo * Lint * Update config_flows.py" * Catch import error when setting up entry * Lint * Fix tests * Fix imports * Lint * Fix Unifi tests * Fix translation test * Add homekit_controller config flow
This commit is contained in:
@@ -4,8 +4,7 @@ import voluptuous as vol
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.const import CONF_WEBHOOK_ID
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
|
||||
DOMAIN = 'twilio'
|
||||
from .const import DOMAIN
|
||||
|
||||
CONF_ACCOUNT_SID = 'account_sid'
|
||||
CONF_AUTH_TOKEN = 'auth_token'
|
||||
@@ -60,14 +59,3 @@ async def async_unload_entry(hass, entry):
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
async_remove_entry = config_entry_flow.webhook_async_remove_entry
|
||||
|
||||
|
||||
config_entry_flow.register_webhook_flow(
|
||||
DOMAIN,
|
||||
'Twilio Webhook',
|
||||
{
|
||||
'twilio_url':
|
||||
'https://www.twilio.com/docs/glossary/what-is-a-webhook',
|
||||
'docs_url': 'https://www.home-assistant.io/components/twilio/'
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user