Use core constants for automation (#46016)

This commit is contained in:
tkdrob 2021-02-04 21:41:43 -05:00 committed by GitHub
parent 374aa3aee1
commit bcefbe2dca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View file

@ -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,

View file

@ -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,

View file

@ -1,7 +1,6 @@
"""Constants for the automation integration."""
import logging
CONF_CONDITION = "condition"
CONF_ACTION = "action"
CONF_TRIGGER = "trigger"
DOMAIN = "automation"