Repository navigation
Remove the deprecated management API from the server - #472
Draft
maximmaxim345 wants to merge 5 commits into
Draft
maximmaxim345 wants to merge 5 commits into
maximmaxim345 wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The removal is complete, consistent with the merged specification change, and adequately covered by updated tests.
Review effort: Balanced
Findings: None
What changed in this PR
Removes deprecated server management support to align with Sendspin/spec#183 while preserving server/unpair.
Changes:
- Removes management APIs, models, enums, and deprecation infrastructure.
- Moves unpair models into
models.core. - Rejects unknown activation activities and updates tests accordingly.
| File | Description |
|---|---|
aiosendspin/client/connection.py |
Uses core unpair model and rejects unknown activities. |
aiosendspin/models/__init__.py |
Removes management module export. |
aiosendspin/models/core.py |
Adds unpair message models. |
aiosendspin/models/management.py |
Deletes management models. |
aiosendspin/models/types.py |
Removes management enums. |
aiosendspin/server/connection.py |
Removes management session handling and APIs. |
aiosendspin/server/server.py |
Removes server management APIs. |
aiosendspin/util.py |
Removes deprecated-warning helper. |
tests/conftest.py |
Removes deprecation test utilities. |
tests/integration/test_unpair_flow.py |
Retains focused unpair coverage. |
tests/models/test_management.py |
Deletes management model tests. |
tests/models/test_package_exports.py |
Updates expected model exports. |
tests/models/test_server_unpair.py |
Tests the relocated unpair model. |
tests/server/test_client_state_dispatch.py |
Removes management-result dispatch coverage. |
tests/server/test_compliance.py |
Removes management deprecation tests. |
tests/server/test_management_issuer.py |
Deletes management request tests. |
tests/server/test_multi_server.py |
Removes management connection-reason coverage. |
tests/server/test_reconnect_policy.py |
Updates reconnect activity coverage. |
tests/test_client_pairing.py |
Updates pairing-window documentation. |
tests/test_client_protocol_callbacks.py |
Covers rejection of removed activities. |
tests/test_util.py |
Removes deprecated-warning tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
1 of 9 tasks
maximmaxim345
added a commit
that referenced
this pull request
Oct 9, 2026
# What does this implement/fix? <!-- Quick description and explanation of changes. --> The client applied a `server/activate` that named an activity it doesn't recognize, dropping the unknown activity with only an info log. The spec never allows such an activity set, so the client now closes the connection with `unauthorized`. Only servers sending an activity other than `playback`, `pairing` or `management` are affected. **Related issue or spec PR (if applicable):** - #472 ## Types of changes <!-- Tick exactly one box. CI (.github/workflows/pr-labels.yaml) applies the matching label, and the release notes use it to sort this change. --> - [x] Bugfix (non-breaking change which fixes an issue): `bugfix` - [ ] New feature (non-breaking change which adds functionality): `new-feature` - [ ] Enhancement to an existing feature: `enhancement` - [ ] Breaking change (changes the public API or the protocol in a way that is not backwards compatible): `breaking-change` - [ ] Refactor (no behavior change): `refactor` - [ ] Documentation only: `documentation` - [ ] Maintenance / chore: `maintenance` - [ ] CI / workflow change: `ci` - [ ] Dependencies bump: `dependencies`
…r-management # Conflicts: # aiosendspin/models/management.py # aiosendspin/server/connection.py # aiosendspin/server/server.py # aiosendspin/util.py # tests/conftest.py # tests/models/test_management.py # tests/server/test_management_issuer.py # tests/test_client_protocol_callbacks.py # tests/test_util.py
…r-management # Conflicts: # tests/server/test_compliance.py
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
The server no longer implements the management activity, which the spec removed in Sendspin/spec#183. Every past client still connects, pairs and plays, since management was always started by the server. Paired legacy devices lose remote management, including opening their pairing window from the server.
Removed:
SendspinServer.enable_managementanddisable_managementSendspinConnection.enable_management,disable_management,list_records,add_record,remove_record,get_pairing_config,set_pairing_configandopen_pairing_windowConnectionReason.MANAGEMENT,Activity.MANAGEMENTandManagementResultaiosendspin.models.managementmoduleaiosendspin.util.warn_deprecatedServerUnpairMessageandServerUnpairPayloadmoved toaiosendspin.models.core.A
management/resultfrom a legacy client is now ignored like any other unknown message.The client still closes with
unauthorizedwhen a server declaresmanagement, and now does the same for any activity it doesn't recognize.Note
Left as draft for now, until a Music Assistant release can drop its device management section.
Shipping this in a patch release would remove that feature for users.
Related issue or spec PR (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependencies