mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 17:48:26 +00:00
Fix Sonos restore calls (#51565)
This commit is contained in:
parent
03f10333c4
commit
bd24431930
@ -764,7 +764,7 @@ class SonosSpeaker:
|
|||||||
"""Pause all current coordinators and restore groups."""
|
"""Pause all current coordinators and restore groups."""
|
||||||
for speaker in (s for s in speakers if s.is_coordinator):
|
for speaker in (s for s in speakers if s.is_coordinator):
|
||||||
if speaker.media.playback_status == SONOS_STATE_PLAYING:
|
if speaker.media.playback_status == SONOS_STATE_PLAYING:
|
||||||
hass.async_create_task(speaker.soco.pause())
|
speaker.soco.pause()
|
||||||
|
|
||||||
groups = []
|
groups = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user