Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/alexa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from homeassistant.const import (
CONF_CLIENT_ID,
CONF_CLIENT_SECRET,
CONF_DESCRIPTION,
CONF_NAME,
CONF_PASSWORD,
)
Expand All @@ -12,7 +13,6 @@
from . import flash_briefings, intent, smart_home_http
from .const import (
CONF_AUDIO,
CONF_DESCRIPTION,
CONF_DISPLAY_CATEGORIES,
CONF_DISPLAY_URL,
CONF_ENDPOINT,
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/alexa/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
API_CHANGE = "change"
API_PASSWORD = "password"

CONF_DESCRIPTION = "description"
CONF_DISPLAY_CATEGORIES = "display_categories"
CONF_SUPPORTED_LOCALES = (
"de-DE",
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/alexa/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
ATTR_SUPPORTED_FEATURES,
ATTR_UNIT_OF_MEASUREMENT,
CLOUD_NEVER_EXPOSED_ENTITIES,
CONF_DESCRIPTION,
CONF_NAME,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
Expand Down Expand Up @@ -74,7 +75,7 @@
AlexaTimeHoldController,
AlexaToggleController,
)
from .const import CONF_DESCRIPTION, CONF_DISPLAY_CATEGORIES
from .const import CONF_DISPLAY_CATEGORIES

if TYPE_CHECKING:
from .config import AbstractConfig
Expand Down
9 changes: 7 additions & 2 deletions homeassistant/components/automation/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
InvalidDeviceAutomationConfig,
)
from homeassistant.config import async_log_exception, config_without_domain
from homeassistant.const import CONF_ALIAS, CONF_CONDITION, CONF_ID, CONF_VARIABLES
from homeassistant.const import (
CONF_ALIAS,
CONF_CONDITION,
CONF_DESCRIPTION,
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
Expand All @@ -18,7 +24,6 @@

from .const import (
CONF_ACTION,
CONF_DESCRIPTION,
CONF_HIDE_ENTITY,
CONF_INITIAL_STATE,
CONF_TRIGGER,
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/automation/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
CONF_TRIGGER_VARIABLES = "trigger_variables"
DOMAIN = "automation"

CONF_DESCRIPTION = "description"
CONF_HIDE_ENTITY = "hide_entity"

CONF_CONDITION_TYPE = "condition_type"
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/blueprint/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
CONF_USE_BLUEPRINT = "use_blueprint"
CONF_INPUT = "input"
CONF_SOURCE_URL = "source_url"
CONF_DESCRIPTION = "description"
CONF_HOMEASSISTANT = "homeassistant"
CONF_MIN_VERSION = "min_version"

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/blueprint/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from homeassistant.const import (
CONF_DEFAULT,
CONF_DESCRIPTION,
CONF_DOMAIN,
CONF_NAME,
CONF_PATH,
Expand All @@ -15,7 +16,6 @@

from .const import (
CONF_BLUEPRINT,
CONF_DESCRIPTION,
CONF_HOMEASSISTANT,
CONF_INPUT,
CONF_MIN_VERSION,
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from homeassistant.components.alexa import const as alexa_const
from homeassistant.components.google_assistant import const as ga_c
from homeassistant.const import (
CONF_DESCRIPTION,
CONF_MODE,
CONF_NAME,
CONF_REGION,
Expand Down Expand Up @@ -49,7 +50,7 @@

ALEXA_ENTITY_SCHEMA = vol.Schema(
{
vol.Optional(alexa_const.CONF_DESCRIPTION): cv.string,
vol.Optional(CONF_DESCRIPTION): cv.string,
vol.Optional(alexa_const.CONF_DISPLAY_CATEGORIES): cv.string,
vol.Optional(CONF_NAME): cv.string,
}
Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/geizhals/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import voluptuous as vol

from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
from homeassistant.const import CONF_NAME
from homeassistant.const import CONF_DESCRIPTION, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle

CONF_DESCRIPTION = "description"
CONF_PRODUCT_ID = "product_id"
CONF_LOCALE = "locale"

Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/notify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import voluptuous as vol

import homeassistant.components.persistent_notification as pn
from homeassistant.const import CONF_NAME, CONF_PLATFORM
from homeassistant.const import CONF_DESCRIPTION, CONF_NAME, CONF_PLATFORM
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import config_per_platform, discovery
Expand Down Expand Up @@ -44,7 +44,6 @@

NOTIFY_SERVICES = "notify_services"

CONF_DESCRIPTION = "description"
CONF_FIELDS = "fields"

PLATFORM_SCHEMA = vol.Schema(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/tts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
)
from homeassistant.const import (
ATTR_ENTITY_ID,
CONF_DESCRIPTION,
CONF_NAME,
CONF_PLATFORM,
HTTP_BAD_REQUEST,
Expand Down Expand Up @@ -61,7 +62,6 @@
CONF_SERVICE_NAME = "service_name"
CONF_TIME_MEMORY = "time_memory"

CONF_DESCRIPTION = "description"
CONF_FIELDS = "fields"

DEFAULT_CACHE = True
Expand Down
1 change: 1 addition & 0 deletions homeassistant/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
CONF_DEFAULT = "default"
CONF_DELAY = "delay"
CONF_DELAY_TIME = "delay_time"
CONF_DESCRIPTION = "description"
CONF_DEVICE = "device"
CONF_DEVICES = "devices"
CONF_DEVICE_CLASS = "device_class"
Expand Down