From 6cb5bf2b880f4fb39a370a088b8760ca8c3d051b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 May 2021 09:52:11 +0200 Subject: [PATCH] Deprecate Denon HEOS YAML configuration (#50104) --- homeassistant/components/heos/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/heos/__init__.py b/homeassistant/components/heos/__init__.py index 56155cb21a2..3a9bedbb376 100644 --- a/homeassistant/components/heos/__init__.py +++ b/homeassistant/components/heos/__init__.py @@ -31,7 +31,11 @@ from .const import ( PLATFORMS = [MEDIA_PLAYER_DOMAIN] CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, extra=vol.ALLOW_EXTRA + vol.All( + cv.deprecated(DOMAIN), + {DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, + ), + extra=vol.ALLOW_EXTRA, ) MIN_UPDATE_SOURCES = timedelta(seconds=1)