Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA (#51719)
This commit is contained in:
parent
a7f05713a0
commit
76c3058d15
27 changed files with 55 additions and 55 deletions
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.automation import AutomationActionType
|
||||
from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation.exceptions import (
|
||||
InvalidDeviceAutomationConfig,
|
||||
)
|
||||
|
@ -33,7 +33,7 @@ from .const import (
|
|||
)
|
||||
from .utils import get_device_wrapper, get_input_triggers
|
||||
|
||||
TRIGGER_SCHEMA = TRIGGER_BASE_SCHEMA.extend(
|
||||
TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_TYPE): vol.In(SUPPORTED_INPUTS_EVENTS_TYPES),
|
||||
vol.Required(CONF_SUBTYPE): vol.In(INPUTS_EVENTS_SUBTYPES),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue