Skip to content

Allow devices without a volume - #867

Merged
joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-device-volume-nullable
Nov 4, 2026
Merged

joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-device-volume-nullable

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

The device object's volume_percent is nullable in the Spotify reference. Device.volume_percent was typed int, so a device reporting null made get_devices, get_playback and anything else returning a device raise InvalidFieldValue.

The field is now int | None. The new test fails on main and passes with this change.

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 b1718b9 into main Nov 4, 2026
14 checks passed
@joostlek
joostlek deleted the ccr-af58c15a-nqvsya-device-volume-nullable branch November 4, 2026 11:37
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 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