From 625e6ceff3c876e1f3d044897a599c322cc5ca36 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 May 2021 13:46:16 +0200 Subject: [PATCH] Deprecate Soma Connect YAML configuration (#50651) --- homeassistant/components/soma/__init__.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/soma/__init__.py b/homeassistant/components/soma/__init__.py index 62cdeb11f8b..e90fba62824 100644 --- a/homeassistant/components/soma/__init__.py +++ b/homeassistant/components/soma/__init__.py @@ -15,11 +15,14 @@ from .const import API, DOMAIN, HOST, PORT DEVICES = "devices" CONFIG_SCHEMA = vol.Schema( - { - DOMAIN: vol.Schema( - {vol.Required(CONF_HOST): cv.string, vol.Required(CONF_PORT): cv.string} - ) - }, + vol.All( + cv.deprecated(DOMAIN), + { + DOMAIN: vol.Schema( + {vol.Required(CONF_HOST): cv.string, vol.Required(CONF_PORT): cv.string} + ) + }, + ), extra=vol.ALLOW_EXTRA, )