mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07: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
|
||||
# Ensure the ping is canceled at shutdown
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user