mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix dangling task for sonos (#88298)
This commit is contained in:
parent
093f7d6bf1
commit
baee6b1f5e
@ -483,13 +483,14 @@ class SonosDiscoveryManager:
|
|||||||
if uid not in self.data.discovery_known:
|
if uid not in self.data.discovery_known:
|
||||||
_LOGGER.debug("New %s discovery uid=%s: %s", source, uid, info)
|
_LOGGER.debug("New %s discovery uid=%s: %s", source, uid, info)
|
||||||
self.data.discovery_known.add(uid)
|
self.data.discovery_known.add(uid)
|
||||||
asyncio.create_task(
|
self.hass.async_create_background_task(
|
||||||
self._async_handle_discovery_message(
|
self._async_handle_discovery_message(
|
||||||
uid,
|
uid,
|
||||||
discovered_ip,
|
discovered_ip,
|
||||||
"discovery",
|
"discovery",
|
||||||
boot_seqnum=cast(int | None, boot_seqnum),
|
boot_seqnum=cast(int | None, boot_seqnum),
|
||||||
)
|
),
|
||||||
|
"sonos-handle_discovery_message",
|
||||||
)
|
)
|
||||||
|
|
||||||
async def setup_platforms_and_discovery(self) -> None:
|
async def setup_platforms_and_discovery(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user