From cdc7f1e0b416df3fcd34782697d49e107bd11663 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 13:24:11 +0200 Subject: [PATCH] Deprecate PVPC YAML configuration --- homeassistant/components/pvpc_hourly_pricing/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/pvpc_hourly_pricing/__init__.py b/homeassistant/components/pvpc_hourly_pricing/__init__.py index dfb7282aae9ea4..2ab8f387bda8db 100644 --- a/homeassistant/components/pvpc_hourly_pricing/__init__.py +++ b/homeassistant/components/pvpc_hourly_pricing/__init__.py @@ -15,7 +15,8 @@ } ) CONFIG_SCHEMA = vol.Schema( - {DOMAIN: cv.ensure_list(UI_CONFIG_SCHEMA)}, extra=vol.ALLOW_EXTRA + vol.All(cv.deprecated(DOMAIN), {DOMAIN: cv.ensure_list(UI_CONFIG_SCHEMA)}), + extra=vol.ALLOW_EXTRA, )