Use core constants for automation (#46016)
This commit is contained in:
parent
374aa3aee1
commit
bcefbe2dca
3 changed files with 2 additions and 4 deletions
|
@ -10,6 +10,7 @@ from homeassistant.const import (
|
|||
ATTR_ENTITY_ID,
|
||||
ATTR_NAME,
|
||||
CONF_ALIAS,
|
||||
CONF_CONDITION,
|
||||
CONF_DEVICE_ID,
|
||||
CONF_ENTITY_ID,
|
||||
CONF_ID,
|
||||
|
@ -57,7 +58,6 @@ from .config import PLATFORM_SCHEMA # noqa
|
|||
from .config import async_validate_config_item
|
||||
from .const import (
|
||||
CONF_ACTION,
|
||||
CONF_CONDITION,
|
||||
CONF_INITIAL_STATE,
|
||||
CONF_TRIGGER,
|
||||
DEFAULT_INITIAL_STATE,
|
||||
|
|
|
@ -8,7 +8,7 @@ from homeassistant.components.device_automation.exceptions import (
|
|||
InvalidDeviceAutomationConfig,
|
||||
)
|
||||
from homeassistant.config import async_log_exception, config_without_domain
|
||||
from homeassistant.const import CONF_ALIAS, CONF_ID, CONF_VARIABLES
|
||||
from homeassistant.const import CONF_ALIAS, CONF_CONDITION, CONF_ID, CONF_VARIABLES
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import config_per_platform, config_validation as cv, script
|
||||
from homeassistant.helpers.condition import async_validate_condition_config
|
||||
|
@ -17,7 +17,6 @@ from homeassistant.loader import IntegrationNotFound
|
|||
|
||||
from .const import (
|
||||
CONF_ACTION,
|
||||
CONF_CONDITION,
|
||||
CONF_DESCRIPTION,
|
||||
CONF_HIDE_ENTITY,
|
||||
CONF_INITIAL_STATE,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"""Constants for the automation integration."""
|
||||
import logging
|
||||
|
||||
CONF_CONDITION = "condition"
|
||||
CONF_ACTION = "action"
|
||||
CONF_TRIGGER = "trigger"
|
||||
DOMAIN = "automation"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue