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

Add Player Queue Commands #65

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Add Player Queue Commands #65

merged 6 commits into from
Jan 8, 2025

Conversation

andrewsayre
Copy link
Owner

@andrewsayre andrewsayre commented Jan 7, 2025

Description:

Adds player queue control commands.

Note: In manual testing, I could not get the save_queue command to work on my local device, so the fixture used in testing was created with the anticipated result.

New

Heos class

  • Added player_get_queue to retrieve the specified player's queue items.
  • Added player_play_queue to play a specific queue index on the specified player.
  • Added player_remove_from_queue to remove one or more items from the specified player's queue
  • Added player_save_queue to save the specified player's queue as a playlist.
  • Added player_move_queue_item to move items in the specified player's queue.

HeosPlayer class

  • Added get_queue to retrieve the player's queue items.
  • Added play_queue to play a specific queue index on the player.
  • Added remove_from_queue to remove one or more items from the player's queue
  • Added save_queue to save the current queue as a playlist.
  • Added move_queue_item to move items in the queue.

Related issue (if applicable): closes #62

Checklist:

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • Tests have been added/updated. No exclusions in .coveragerc permitted.
  • README.MD updated (if necessary)

@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.71%. Comparing base (5cf06b1) to head (44cace8).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #65      +/-   ##
==========================================
+ Coverage   99.70%   99.71%   +0.01%     
==========================================
  Files          17       17              
  Lines        1683     1750      +67     
==========================================
+ Hits         1678     1745      +67     
  Misses          5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewsayre andrewsayre merged commit b4103f5 into dev Jan 8, 2025
5 checks passed
@andrewsayre andrewsayre deleted the feature_queue branch January 8, 2025 02:04
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.

Add remaining Player commands
2 participants