mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Fix dangling task for mysensors (#88290)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
5a31bb2ff3
commit
517e88600c
@ -116,7 +116,7 @@ async def try_connect(
|
||||
finally:
|
||||
if connect_task is not None and not connect_task.done():
|
||||
connect_task.cancel()
|
||||
asyncio.create_task(gateway.stop())
|
||||
await gateway.stop()
|
||||
except OSError as err:
|
||||
_LOGGER.info("Try gateway connect failed with exception", exc_info=err)
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user