Update sonos.markdown (#12032)

* Update sonos.markdown

Sonos integration doesn't accept usage of `snapshot` and `restore` without `entity_id` after 0.105.0. See https://github.com/home-assistant/home-assistant/issues/31650#issue-562108449.

* Addresses review comments

* Fix linter warnings

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Ahmet BARIŞ 2020-03-10 16:59:52 +02:00 committed by GitHub
parent a86df4d035
commit 57ac0bf4d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ The queue is not snapshotted and must be left untouched until the restore. Using
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | yes | The speakers to snapshot.
| `entity_id` | no | The speakers to snapshot. To target all Sonos devices, use `all`.
| `with_group` | yes | Should we also snapshot the group layout and the state of other speakers in the group, defaults to true.
### Service `sonos.restore`
@ -50,7 +50,7 @@ A cloud queue cannot be restarted. This includes queues started from within Spot
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | yes | String or list of `entity_id`s that should have their snapshot restored.
| `entity_id` | no | String or list of `entity_id`s that should have their snapshot restored. To target all Sonos devices, use `all`.
| `with_group` | yes | Should we also restore the group layout and the state of other speakers in the group, defaults to true.
### Service `sonos.join`