From fa7b72a4ed7b65a9cbd1b153512583f67ab06960 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Sat, 30 Oct 2021 00:04:57 +0200 Subject: [PATCH] reload service: remove entities before disconnection (#58712) --- homeassistant/components/knx/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/knx/__init__.py b/homeassistant/components/knx/__init__.py index 54d4b4b7237..57c88b84cc7 100644 --- a/homeassistant/components/knx/__init__.py +++ b/homeassistant/components/knx/__init__.py @@ -239,15 +239,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # First check for config file. If for some reason it is no longer there # or knx is no longer mentioned, stop the reload. config = await async_integration_yaml_config(hass, DOMAIN) - if not config or DOMAIN not in config: return - await knx_module.xknx.stop() - await asyncio.gather( *(platform.async_reset() for platform in async_get_platforms(hass, DOMAIN)) ) + await knx_module.xknx.stop() await async_setup(hass, config)