Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow timeout to be specified on soco.play_uri #961

Merged
merged 12 commits into from
Apr 14, 2024

Conversation

PeteRager
Copy link
Contributor

Allow a per call timeout to be set on soco.play_uri - similar to to the existing capability in add_uri_to_queue and add_to_queue.

This capability is needed downstream by the Home Assistant Sonos integration, to allow a longer timeout to be used than the configured default timeout.

home-assistant/core#114936

Copy link
Contributor

@jjlawren jjlawren left a comment

Choose a reason for hiding this comment

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

Looks good!

@PeteRager
Copy link
Contributor Author

I may have the wrong base for this, I think I started with 0.30 fixes, let me know if I need to do something to fix

@pwt
Copy link
Contributor

pwt commented Apr 14, 2024

I may have the wrong base for this, I think I started with 0.30 fixes, let me know if I need to do something to fix

It looks fine to me. There's a couple of unrelated new Pylint warnings, which I'll address separately.
I'll release a patch version (v0.30.3) in the next day or two.

@pwt pwt merged commit 4b1525c into SoCo:master Apr 14, 2024
2 of 7 checks passed
pwt pushed a commit that referenced this pull request Apr 14, 2024
- Add kwargs to play_uri()
- Add kwargs to play()
- Add test
@pwt
Copy link
Contributor

pwt commented Apr 14, 2024

This change is now included in SoCo v0.30.3. Thanks for the contribution.

@PeteRager
Copy link
Contributor Author

Glad to help. Thanks for the quick turn around!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants