Skip to content

v1.2.0

Latest

Choose a tag to compare

@SteveEasley SteveEasley released this 11 Oct 17:00

What's Changed

Behavior changes

  • Device.connect() now loads playback state (UI screen, play status, title, screen mask, CinemaScope mode) for a device that is already on, so clients that never call refresh() see current state right after connecting.
  • set_volume_level() and set_volume_capabilities() now raise TypeError for True/False instead of sending VOLUME_LEVEL=True.

Fixes

  • A request that timed out, failed or was cancelled never released its sequence number. After 10 such failures every request failed until the connection dropped. Sequence numbers are now always released.
  • Waiting for a free sequence number could loop forever for some timeout values.
  • Sequence numbers are now handed out in rotation, so a late reply to a timed-out request cannot be taken as the next request's answer. Such replies are logged as a warning instead of an error.
  • refresh() on an unconnected device no longer sends every playback query twice.

Development

  • Tooling moved to uv and prek, with tool versions matching Home Assistant; ruff's flake8-async rules are enabled.
  • __version__ lives in kaleidescape/_version.py, removing an import cycle.
  • The test suite was reworked to assert real behavior, and the test emulator binds a free port.

Full Changelog: v1.1.7...v1.2.0