From c6860dc999fd65039a665a914e2602e8f760112a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 14:13:20 +0200 Subject: [PATCH] Deprecate JuiceNet YAML configuration (#50655) --- homeassistant/components/juicenet/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/juicenet/__init__.py b/homeassistant/components/juicenet/__init__.py index f892babd9cf..28789849944 100644 --- a/homeassistant/components/juicenet/__init__.py +++ b/homeassistant/components/juicenet/__init__.py @@ -22,7 +22,10 @@ _LOGGER = logging.getLogger(__name__) PLATFORMS = ["sensor", "switch"] CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema({vol.Required(CONF_ACCESS_TOKEN): cv.string})}, + vol.All( + cv.deprecated(DOMAIN), + {DOMAIN: vol.Schema({vol.Required(CONF_ACCESS_TOKEN): cv.string})}, + ), extra=vol.ALLOW_EXTRA, )