From 2ca0eb61dcdbee7209fe44b35ff1725ca8f8e1fb Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 9 May 2021 19:23:55 +0200 Subject: [PATCH] Deprecate Pi-hole YAML configuration (#50358) --- homeassistant/components/pi_hole/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/pi_hole/__init__.py b/homeassistant/components/pi_hole/__init__.py index 7e897887d8d..34fdc9978c1 100644 --- a/homeassistant/components/pi_hole/__init__.py +++ b/homeassistant/components/pi_hole/__init__.py @@ -52,7 +52,10 @@ PI_HOLE_SCHEMA = vol.Schema( ) CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [PI_HOLE_SCHEMA]))}, + vol.All( + cv.deprecated(DOMAIN), + {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [PI_HOLE_SCHEMA]))}, + ), extra=vol.ALLOW_EXTRA, )