mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix debugpy blocking the event loop at startup (#65252)
This commit is contained in:
parent
77ef86faee
commit
1d5a052df1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user