forked from home-assistant/core
Fix CI failing due to Shell Command exception (#52483)
This commit is contained in:
@@ -92,6 +92,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
if process:
|
||||
with suppress(TypeError):
|
||||
process.kill()
|
||||
# https://bugs.python.org/issue43884
|
||||
# pylint: disable=protected-access
|
||||
process._transport.close() # type: ignore[attr-defined]
|
||||
del process
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user