From 8a135ce0f688d8793c3bc5237e37717b7dd1345f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 14:56:28 +0200 Subject: [PATCH] Deprecate Meteo-France YAML configuration (#50658) --- homeassistant/components/meteo_france/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/meteo_france/__init__.py b/homeassistant/components/meteo_france/__init__.py index 4ec03e4f5a5..15a9aa7d3cd 100644 --- a/homeassistant/components/meteo_france/__init__.py +++ b/homeassistant/components/meteo_france/__init__.py @@ -33,7 +33,10 @@ SCAN_INTERVAL = timedelta(minutes=15) CITY_SCHEMA = vol.Schema({vol.Required(CONF_CITY): cv.string}) CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [CITY_SCHEMA]))}, + vol.All( + cv.deprecated(DOMAIN), + {DOMAIN: vol.Schema(vol.All(cv.ensure_list, [CITY_SCHEMA]))}, + ), extra=vol.ALLOW_EXTRA, )