-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Make jellyfin not single config entry #147656
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
Make jellyfin not single config entry #147656
Conversation
Hey there @RunC0deRun, @ctalkington, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Jellyfin integration to allow multiple configuration entries by removing the single_config_entry
restriction and updating related tests and fixtures.
- Drop
single_config_entry
frommanifest.json
so multiple Jellyfin instances are supported - Remove the old single-instance abort test and add a new duplicate-entry abort test
- Update test fixture to use a more realistic user ID value
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/components/jellyfin/test_config_flow.py | Removed single-instance abort test; added test_already_configured to verify duplicate-entry abort behavior |
tests/components/jellyfin/fixtures/get-user-settings.json | Changed "Id": "string" to "Id": "USER-UUID" for clarity in fixtures |
homeassistant/components/jellyfin/manifest.json | Removed "single_config_entry": true to support multiple entries |
Comments suppressed due to low confidence (1)
tests/components/jellyfin/test_config_flow.py:193
- Consider adding a complementary test that verifies configuring a second Jellyfin instance with a different unique ID succeeds now that multiple entries are supported.
async def test_already_configured(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @zweckj 👍
../Frenck
Breaking change
Proposed change
jellyfin was set as "single config entry", although you can have multiple instances and the docs even talk about that case, and it already sets and checks a unique id. Fix that.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: