From d72a10a5e97f23165440231c4a9f4404627231da Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 13:45:54 +0200 Subject: [PATCH] Deprecate Plum Lightpad YAML configuration (#50650) --- .../components/plum_lightpad/__init__.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/plum_lightpad/__init__.py b/homeassistant/components/plum_lightpad/__init__.py index ecc1dacfb2f..ab370f53731 100644 --- a/homeassistant/components/plum_lightpad/__init__.py +++ b/homeassistant/components/plum_lightpad/__init__.py @@ -17,14 +17,17 @@ from .utils import load_plum _LOGGER = logging.getLogger(__name__) CONFIG_SCHEMA = vol.Schema( - { - DOMAIN: vol.Schema( - { - vol.Required(CONF_USERNAME): cv.string, - vol.Required(CONF_PASSWORD): cv.string, - } - ) - }, + vol.All( + cv.deprecated(DOMAIN), + { + DOMAIN: vol.Schema( + { + vol.Required(CONF_USERNAME): cv.string, + vol.Required(CONF_PASSWORD): cv.string, + } + ) + }, + ), extra=vol.ALLOW_EXTRA, )