Migrate CONF_WEBHOOK_ID to homeassistant.const (#17460)
* Migrate CONF_WEBHOOK_ID to homeassistant.const * Switch over all instances of webhook_id to the const * Switch last instance of webhook_id to the const * automation: conf constants for conf * webhook: conf constants for conf
This commit is contained in:
parent
879924fea4
commit
bd450ee9ff
3 changed files with 5 additions and 5 deletions
|
@ -11,13 +11,12 @@ from aiohttp import hdrs
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.const import CONF_PLATFORM
|
||||
from homeassistant.const import CONF_PLATFORM, CONF_WEBHOOK_ID
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
DEPENDENCIES = ('webhook',)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
CONF_WEBHOOK_ID = 'webhook_id'
|
||||
|
||||
TRIGGER_SCHEMA = vol.Schema({
|
||||
vol.Required(CONF_PLATFORM): 'webhook',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue