Skip to content

Make removed product and publisher fields optional - #862

Merged
joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-deprecated-user-audiobook-fields
Oct 30, 2026
Merged

joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-deprecated-user-audiobook-fields

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

The February 2026 Web API changes list product as removed from the User object and publisher as removed from Audiobook for apps in Developer Mode. The reference pages mark both as deprecated. The library required both, so a response without them would make get_current_user() and the audiobook calls fail.

  • UserProfile.product is now ProductType | None, defaulting to None.
  • SimplifiedAudiobook.publisher is now str | None, defaulting to None through a pre-deserialize hook. Audiobook now calls the parent hook, so it gets the same default.

Responses that still include the fields parse as before. The new tests use fixtures without these fields; they fail on main and pass with this change.

Note for consumers: Home Assistant's premium check will see None instead of crashing when product is absent.

Related Issues


Generated by Claude Code

@joostlek joostlek added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Oct 30, 2026 — with Claude
@sonarqubecloud

Copy link
Copy Markdown

@joostlek
joostlek merged commit c7c9746 into main Oct 30, 2026
14 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants