From ce8871ef598d0670fbdff6288d93425a4a4846ab Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Wed, 3 Mar 2021 00:50:40 +0100 Subject: [PATCH] KNX remove custom deprecation warnings (#47238) --- homeassistant/components/knx/__init__.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/homeassistant/components/knx/__init__.py b/homeassistant/components/knx/__init__.py index 697b4cfb524..e74bae7442c 100644 --- a/homeassistant/components/knx/__init__.py +++ b/homeassistant/components/knx/__init__.py @@ -77,6 +77,8 @@ SERVICE_KNX_READ = "read" CONFIG_SCHEMA = vol.Schema( { DOMAIN: vol.All( + # deprecated since 2021.3 + cv.deprecated(CONF_KNX_CONFIG), # deprecated since 2021.2 cv.deprecated(CONF_KNX_FIRE_EVENT), cv.deprecated("fire_event_filter", replacement_key=CONF_KNX_EVENT_FILTER), @@ -236,21 +238,6 @@ async def async_setup(hass, config): discovery.async_load_platform(hass, platform.value, DOMAIN, {}, config) ) - if not knx_module.xknx.devices: - _LOGGER.warning( - "No KNX devices are configured. Please read " - "https://www.home-assistant.io/blog/2020/09/17/release-115/#breaking-changes" - ) - - # deprecation warning since 2021.3 - if CONF_KNX_CONFIG in config[DOMAIN]: - _LOGGER.warning( - "The 'config_file' option is deprecated. Please replace it with Home Assistant config schema " - "directly in `configuration.yaml` (see https://www.home-assistant.io/integrations/knx/). \n" - "An online configuration converter tool for your `%s` is available at https://xknx.io/config-converter/", - config[DOMAIN][CONF_KNX_CONFIG], - ) - hass.services.async_register( DOMAIN, SERVICE_KNX_SEND,