Deprecate Plum Lightpad YAML configuration (#50650)

pull/50661/head
Franck Nijhof 2021-05-15 13:45:54 +02:00 committed by GitHub
parent 599db742a3
commit d72a10a5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 8 deletions

View File

@ -17,6 +17,8 @@ from .utils import load_plum
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
CONFIG_SCHEMA = vol.Schema( CONFIG_SCHEMA = vol.Schema(
vol.All(
cv.deprecated(DOMAIN),
{ {
DOMAIN: vol.Schema( DOMAIN: vol.Schema(
{ {
@ -25,6 +27,7 @@ CONFIG_SCHEMA = vol.Schema(
} }
) )
}, },
),
extra=vol.ALLOW_EXTRA, extra=vol.ALLOW_EXTRA,
) )