From bdeeb54d2dabd577e10b2c33292890f879db5c4c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 16:09:44 +0200 Subject: [PATCH] Deprecate PVPC YAML configuration (#50656) --- 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 dfb7282aae9..2ab8f387bda 100644 --- a/homeassistant/components/pvpc_hourly_pricing/__init__.py +++ b/homeassistant/components/pvpc_hourly_pricing/__init__.py @@ -15,7 +15,8 @@ UI_CONFIG_SCHEMA = vol.Schema( } ) 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, )