Skip to content

[Sonos] handle a stale group choice better#11969

Merged
pernielsentikaer merged 4 commits intoraycast:mainfrom
AntonNiklasson:anton/sonos-group-name-forget
Apr 24, 2024
Merged

[Sonos] handle a stale group choice better#11969
pernielsentikaer merged 4 commits intoraycast:mainfrom
AntonNiklasson:anton/sonos-group-name-forget

Conversation

@AntonNiklasson
Copy link
Contributor

@AntonNiklasson AntonNiklasson commented Apr 24, 2024

Description

These changes adresses a problem that appears when the group configuration changes in the network. If the user has previously explicitly picked a group to control, but the group no longer is available, the command would fail.

This is pretty likely to happen where merging and unmerging groups and devices is common. I do that a lot myself, that's how I realised this was an issue.

The new logic is able to detect that the stored group choice is stale, and falls back to the "fallback group choice" that was in place already.

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: sonos Issues related to the sonos extension OP is author The OP of the PR is the author of the extension labels Apr 24, 2024
@AntonNiklasson AntonNiklasson force-pushed the anton/sonos-group-name-forget branch 2 times, most recently from 11d6aaf to de3d597 Compare April 24, 2024 10:02
@AntonNiklasson AntonNiklasson force-pushed the anton/sonos-group-name-forget branch from de3d597 to 45d9cff Compare April 24, 2024 10:05
Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Looks good to me, approved 🔥

@pernielsentikaer pernielsentikaer merged commit 6da32ec into raycast:main Apr 24, 2024
@github-actions
Copy link
Contributor

Published to the Raycast Store:
https://raycast.com/AntonNiklasson/sonos

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: sonos Issues related to the sonos extension OP is author The OP of the PR is the author of the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants