Migrate library xbox-webapi to python-xbox in Xbox integration#155536
Merged
Conversation
Contributor
|
Hey there @hunterjm, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
This was referenced Oct 31, 2025
d651aae to
f015f71
Compare
f015f71 to
b218d51
Compare
zweckj
approved these changes
Nov 3, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Proposed change
The xbox-webapi library is pretty outdated and hasn't received any significant updates in 5 years, the only minor release in this time already being 2 years old. I tried to submit PRs to fix the most urgent issues but I haven't got any reaction nor do I expect one anytime soon. I decided to fork the library and not only did i fix the most urgent issues, I also completely modernized the code. It is now fully typed and uses modern typing syntax.
This fixes some things that were dysfunctional, because some data wasn't exposed by the API as the library used outdated endpoints or request headers.
There is also a change to 2 recently added sensors, following and follower, which don't include friends anymore, instead friend count will now have to be be added as a separate sensor.
Release notes of the new library:
https://github.com/tr4nt0r/python-xbox/releases/tag/v0.1.0
A diff between the old library and the new library:
tr4nt0r/python-xbox@v0.0.0...v0.1.0
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: