From 084fe1fb68238666bfa7d8bb4de5769ac2137e4a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 May 2021 09:51:43 +0200 Subject: [PATCH] Deprecate Glances YAML configuration (#50085) --- homeassistant/components/glances/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/glances/__init__.py b/homeassistant/components/glances/__init__.py index 0ccf8509cdd..a2969c032f8 100644 --- a/homeassistant/components/glances/__init__.py +++ b/homeassistant/components/glances/__init__.py @@ -54,7 +54,8 @@ GLANCES_SCHEMA = vol.All( ) CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.All(cv.ensure_list, [GLANCES_SCHEMA])}, extra=vol.ALLOW_EXTRA + vol.All(cv.deprecated(DOMAIN), {DOMAIN: vol.All(cv.ensure_list, [GLANCES_SCHEMA])}), + extra=vol.ALLOW_EXTRA, )