mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Use eager_start for sonos ping background task (#111578)
This commit is contained in:
parent
bf866732c9
commit
26079a6eaf
@ -613,7 +613,9 @@ class SonosSpeaker:
|
|||||||
return
|
return
|
||||||
# Ensure the ping is canceled at shutdown
|
# Ensure the ping is canceled at shutdown
|
||||||
self.hass.async_create_background_task(
|
self.hass.async_create_background_task(
|
||||||
self._async_check_activity(), f"sonos {self.uid} {self.zone_name} ping"
|
self._async_check_activity(),
|
||||||
|
f"sonos {self.uid} {self.zone_name} ping",
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _async_check_activity(self) -> None:
|
async def _async_check_activity(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user