mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 09:38:21 +00:00
Hotfix for Sonos favorites race condition (#50495)
This commit is contained in:
parent
2c492d71f7
commit
17c1031973
@ -454,7 +454,8 @@ class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
|
||||
|
||||
async def async_reconnect_player(self) -> None:
|
||||
"""Set basic information when player is reconnected."""
|
||||
await self.hass.async_add_executor_job(self._reconnect_player)
|
||||
async with self.data.topology_condition:
|
||||
await self.hass.async_add_executor_job(self._reconnect_player)
|
||||
|
||||
def _reconnect_player(self) -> None:
|
||||
"""Set basic information when player is reconnected."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user