Skip to content

fix: correct adjustVolume request field and response volume - #90

Merged
kakopappa merged 1 commit into
masterfrom
6.0.0-dev
Sep 21, 2026
Merged

kakopappa merged 1 commit into
masterfrom
6.0.0-dev

Conversation

@kakopappa

@kakopappa kakopappa commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Fix read from a nonexistent volumeDelta field

The delta was read from a nonexistent volumeDelta field, so .get(..., 0)
handed every adjustVolume callback a 0 and reported 0 back. The server's
updateDevice() stores an adjustVolume response's value.volume as the device's
absolute level, so "turn it down a bit" silently muted the device in the cloud
state with no error anywhere.

The delta now comes from the request's volume field, and on_adjust_volume can
return {"success": True, "volume": <new volume>} to report the level after the
adjustment. Returning True keeps the previous delta echo.

Bumps to 6.1.0; 6.0.0 is already on PyPI.
@kakopappa
kakopappa merged commit 1141570 into master Sep 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant