diff --git a/homeassistant/components/debugpy/__init__.py b/homeassistant/components/debugpy/__init__.py index 21cfeb15a80..1dc0f525c4d 100644 --- a/homeassistant/components/debugpy/__init__.py +++ b/homeassistant/components/debugpy/__init__.py @@ -46,7 +46,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Enable asyncio debugging and start the debugger.""" get_running_loop().set_debug(True) - debugpy.listen((conf[CONF_HOST], conf[CONF_PORT])) + await hass.async_add_executor_job( + debugpy.listen, (conf[CONF_HOST], conf[CONF_PORT]) + ) if conf[CONF_WAIT]: _LOGGER.warning(