From e55be3c89a1e365aec0adf1b0c513838a517d16e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 May 2021 09:52:32 +0200 Subject: [PATCH] Deprecate Freebox YAML configuration (#50084) --- homeassistant/components/freebox/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/freebox/__init__.py b/homeassistant/components/freebox/__init__.py index 40e01db39d1..44816a5c8ae 100644 --- a/homeassistant/components/freebox/__init__.py +++ b/homeassistant/components/freebox/__init__.py @@ -18,7 +18,10 @@ FREEBOX_SCHEMA = vol.Schema( ) CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [FREEBOX_SCHEMA]))}, + vol.All( + cv.deprecated(DOMAIN), + {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [FREEBOX_SCHEMA]))}, + ), extra=vol.ALLOW_EXTRA, )