mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Use eager_start for sonos ping background task (#111578)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user