mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
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:
committed by
Paulus Schoutsen
parent
879924fea4
commit
bd450ee9ff
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user