Use consolidated constant for "description" (#48490)

This commit is contained in:
Philip Allgaier 2021-03-31 14:12:15 +02:00 committed by GitHub
parent d62297a28b
commit 450f3740cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 14 deletions

View file

@ -9,7 +9,7 @@ from typing import Any, cast
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
@ -44,7 +44,6 @@ SERVICE_PERSISTENT_NOTIFICATION = "persistent_notification"
NOTIFY_SERVICES = "notify_services"
CONF_DESCRIPTION = "description"
CONF_FIELDS = "fields"
PLATFORM_SCHEMA = vol.Schema(