mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Fix dangling task for roon (#88291)
This commit is contained in:
parent
9a5f88f55f
commit
a223b30924
@ -66,7 +66,9 @@ class RoonServer:
|
||||
)
|
||||
|
||||
# Initialize Roon background polling
|
||||
asyncio.create_task(self.async_do_loop())
|
||||
self.config_entry.async_on_unload(
|
||||
asyncio.create_task(self.async_do_loop()).cancel
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user