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:
|
if process:
|
||||||
with suppress(TypeError):
|
with suppress(TypeError):
|
||||||
process.kill()
|
process.kill()
|
||||||
|
# https://bugs.python.org/issue43884
|
||||||
|
# pylint: disable=protected-access
|
||||||
|
process._transport.close() # type: ignore[attr-defined]
|
||||||
del process
|
del process
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user