Skip to content

Adds continuous play support to Plex integration#158281

Merged
joostlek merged 9 commits into
home-assistant:devfrom
siemon-geeroms:dev
Dec 16, 2025
Merged

Adds continuous play support to Plex integration#158281
joostlek merged 9 commits into
home-assistant:devfrom
siemon-geeroms:dev

Conversation

@siemon-geeroms
Copy link
Copy Markdown
Contributor

@siemon-geeroms siemon-geeroms commented Dec 8, 2025

Proposed change

This PR adds continuous play support to the Plex integration, allowing playback to continue with related content after the current media finishes.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecated feature (breaking change)
  • Code quality improvements to existing code or addition of tests

Additional information

Changes include:

  • homeassistant/components/plex/models.py: Added continuous property and fixed resume logic for PlayQueue objects
  • homeassistant/components/plex/services.py: Added continuous parameter support in playqueue creation
  • tests/components/plex/test_services.py: Added tests for continuous play functionality

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

siemon-geeroms and others added 3 commits December 8, 2025 11:16
adding continuous parameter and resolving bug in resuming playQueue

accept true or 1 as value

ruff changes
Adds support for the 'continuous' parameter when looking up media to start continuous playback.
@home-assistant
Copy link
Copy Markdown
Contributor

home-assistant Bot commented Dec 8, 2025

Hey there @jjlawren, mind taking a look at this pull request as it has been labeled with an integration (plex) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of plex can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign plex Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

@siemon-geeroms siemon-geeroms marked this pull request as ready for review December 9, 2025 14:12
Comment thread homeassistant/components/plex/models.py Outdated
@home-assistant home-assistant Bot marked this pull request as draft December 12, 2025 12:53
@home-assistant
Copy link
Copy Markdown
Contributor

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Simplifies attribute access for media offset by directly accessing the `viewOffset` attribute on the media object. This removes the need for `getattr` and improves code readability.
@siemon-geeroms siemon-geeroms marked this pull request as ready for review December 13, 2025 21:48
@home-assistant home-assistant Bot requested a review from joostlek December 13, 2025 21:48
@joostlek joostlek merged commit 412ee0d into home-assistant:dev Dec 16, 2025
32 checks passed
heindrichpaul pushed a commit to heindrichpaul/core that referenced this pull request Dec 17, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants