mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix clearing of Sonos library cache during regrouping (#74085)
Fix clearing of ZoneGroupState attribute cache
This commit is contained in:
parent
cb46bb5bfa
commit
800bae68a8
@ -1084,8 +1084,8 @@ class SonosSpeaker:
|
||||
except asyncio.TimeoutError:
|
||||
_LOGGER.warning("Timeout waiting for target groups %s", groups)
|
||||
|
||||
for speaker in hass.data[DATA_SONOS].discovered.values():
|
||||
speaker.soco._zgs_cache.clear() # pylint: disable=protected-access
|
||||
any_speaker = next(iter(hass.data[DATA_SONOS].discovered.values()))
|
||||
any_speaker.soco.zone_group_state.clear_cache()
|
||||
|
||||
#
|
||||
# Media and playback state handlers
|
||||
|
Loading…
x
Reference in New Issue
Block a user