Files
home-assistant-core/homeassistant/components
Anders Melchiorsen dd11f8d3fe Avoid playing queue pollution when restoring Sonos snapshots (#21963)
Assume a snapshot state with three speakers in two groups, AB and C. They will
be playing the A and C queues, respectively. The B queue exists but is hidden
in this topology.

Unjoin B and form a new group BC, playing the B queue (now with the C queue
hidden).

To restore the snapshot we would join B back to A. The BC group would now only
contain the C speaker, still playing the B queue. The C queue has been lost :-(

The problem is that unjoining a coordinator will elect a new coordinator that
inherits the group queue and thus has its hidden queue overwritten.

This commit avoids the situation by having restore unjoin all slaves. Above, C
would be unjoined before joining B to A. This restores the C queue and since B
is then alone, it can be joined to A without having to transfer its playing
queue to remaining speakers.
2019-03-12 14:39:55 +01:00
..
2019-03-05 11:07:40 +01:00
2019-02-14 20:34:43 +01:00
2019-03-02 11:29:59 +01:00
2019-03-10 19:55:36 -07:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-03 12:31:09 -08:00
2019-02-13 21:21:14 +01:00
2019-03-11 12:08:02 -07:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-27 16:10:40 -05:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-11 19:57:10 -07:00
2019-02-13 21:21:14 +01:00
2019-03-11 12:21:20 -07:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-11 12:08:02 -07:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-09 21:26:26 -08:00
2019-02-13 21:21:14 +01:00
2019-03-09 21:26:26 -08:00
2019-02-13 21:21:14 +01:00
2019-02-27 16:34:13 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-27 16:34:13 -08:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-03-02 11:29:59 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-03-09 21:26:26 -08:00
2019-03-02 11:29:59 +01:00
2019-02-13 21:21:14 +01:00
2019-03-09 21:26:26 -08:00
2019-02-14 20:34:43 +01:00
2019-02-07 22:50:59 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 16:01:46 +01:00
2019-03-09 21:26:26 -08:00
2019-02-14 16:01:46 +01:00
2019-02-14 16:01:46 +01:00
2019-02-14 16:01:46 +01:00
2019-03-09 21:26:26 -08:00
2019-02-14 16:01:46 +01:00
2019-02-14 16:01:46 +01:00
2019-02-21 16:40:25 -08:00
2019-02-14 16:01:46 +01:00
2019-02-14 16:01:46 +01:00
2019-02-14 20:34:43 +01:00
2019-02-14 16:01:46 +01:00
2019-03-02 17:42:51 -05:00
2019-03-09 21:26:26 -08:00
2019-02-14 16:01:46 +01:00
2019-03-10 19:55:36 -07:00
2019-02-27 16:34:13 -08:00
2019-02-14 16:01:46 +01:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-03-09 21:26:26 -08:00
2019-02-13 20:35:12 -08:00
2019-02-27 16:34:13 -08:00
2019-03-02 11:29:59 +01:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-03-02 11:29:59 +01:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-21 16:40:25 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-03-09 21:26:26 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-27 16:34:13 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-27 16:34:13 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-14 20:34:43 +01:00
2019-02-13 20:35:12 -08:00
2019-02-15 10:57:47 +01:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-03-02 11:29:59 +01:00
2019-02-13 20:35:12 -08:00
2019-02-27 16:34:13 -08:00
2019-02-13 20:35:12 -08:00
2019-02-22 17:34:23 +01:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-27 17:51:09 -07:00
2019-02-16 17:03:08 +01:00
2019-03-09 21:26:26 -08:00
2019-02-27 16:10:40 -05:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-02-13 20:35:12 -08:00
2019-03-09 21:26:26 -08:00
2019-02-13 20:35:12 -08:00
2019-03-09 21:26:26 -08:00
2019-02-27 16:10:40 -05:00
2019-03-09 12:04:13 -08:00
2019-02-26 13:55:11 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-02 11:29:59 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-02 11:29:59 +01:00
2019-03-11 21:25:29 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-27 16:34:13 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-02 11:29:59 +01:00
2019-02-26 14:42:09 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-11 19:57:10 -07:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-05 06:18:25 +01:00
2019-02-14 20:34:43 +01:00
2019-02-26 22:22:29 -05:00
2019-03-09 21:26:26 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-27 16:33:26 -08:00
2019-02-13 21:21:14 +01:00
2019-03-09 21:26:26 -08:00
2019-03-09 21:26:26 -08:00
2019-02-13 21:21:14 +01:00
2019-02-21 16:40:25 -08:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-27 16:34:13 -08:00
2019-02-27 16:34:13 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-03-09 21:26:26 -08:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-02-13 21:21:14 +01:00
2019-02-14 20:34:43 +01:00
2019-02-13 21:21:14 +01:00
2019-03-09 20:09:09 -08:00
2019-02-13 21:21:14 +01:00
2019-02-13 15:44:18 -08:00
2019-02-13 21:21:14 +01:00