Repository navigation
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 callrefresh()see current state right after connecting.set_volume_level()andset_volume_capabilities()now raiseTypeErrorforTrue/Falseinstead of sendingVOLUME_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 inkaleidescape/_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