From 3d4913348a00b35aa8ba0bcdee3b1e268ea07e29 Mon Sep 17 00:00:00 2001 From: Marvin Wichmann Date: Fri, 11 Sep 2020 13:09:31 +0200 Subject: [PATCH] Warn users if KNX has no devices configured (#39899) Co-authored-by: Martin Hjelmare --- homeassistant/components/knx/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/knx/__init__.py b/homeassistant/components/knx/__init__.py index 7e56d2a955a..5a2f29e6247 100644 --- a/homeassistant/components/knx/__init__.py +++ b/homeassistant/components/knx/__init__.py @@ -148,6 +148,12 @@ async def async_setup(hass, config): discovery.async_load_platform(hass, platform.value, DOMAIN, {}, config) ) + if not hass.data[DATA_KNX].xknx.devices: + _LOGGER.warning( + "No KNX devices are configured. Please read " + "https://www.home-assistant.io/blog/2020/09/17/release-115/#breaking-changes" + ) + hass.services.async_register( DOMAIN, SERVICE_KNX_SEND,