0.8.2rc1
Pre-release
Pre-release
What's Changed
- Exception handling has been overhauled:
- More granular exception classes have been added as subclasses of PioneerError class
- AVR errors for connection and update methods raise PioneerError subclasses when an AVR error is encountered.
mute_on
,mute_off
,set_volume_level
now raises PioneerError subclasses for AVR errors, previously errors were only loggedupdate
raises an ExceptionGroup when multiple exceptions are encountered during a full refreshupdate
raisesAVRUnavailableError
is raised when the AVR disconnects during a full refreshsend_command
always raisesAVRUnavailableError
on AVR disconnect, even whenignore_error
is set- Error text interpolation is moved into the PioneerError class
- The responder task has been removed and its functionality merged into the listener task. The responder debug parameter has also been removed
- AVR properties are reset to unknown on AVR disconnect. A full update after reconnection will repopulate AVR properties
All Changes
- Run full update on AVR on reconnect 1f9150b
- Reset AVR properties on disconnect 52c236c
- Drop listening modes message to debug e58c5a0
- Read responses directly in listener task instead of responder task 28e5d44
- Remove responder task handling 28e5d44
- Remove responder debug 28e5d44
- Add failed command to timeout exception 688a34e
- Show debug for command queue start and complete 0f29d52
- Add AVRConnectError exception for connect errors 28445c9
- Demote AVR not connected on disconnect message to debug be2f5c6
- Log error on send_raw_command write exception be2f5c6
- Always re-raise AVRUnavailableError on send_command f869cfd
- Defer exception handling to caller in _refresh_zones ccd196e
- Handle command queue task cancellation and AVR unavailable exceptions 1d4a9b2
- Re-raise command queue exceptions on command queue wait 2b54ffe
- Pass through exceptions on set_volume_level command failure a4792e8
- Raise AVRCommandError on volume step errors a4792e8
- Pass through exceptions for mute_off and mute_on 0a0f53d
- Revert to asyncio.wait_for to wait for response 9596d8f
- Move error message interpolation to .exceptions 45ce64c
- Raise PioneerError child exceptions for detected AVR errors 45ce64c
- Add more granular errors with keyed message text and exception argument parsing 45ce64c
- Handle command queue task cancellation in _command_queue_wait 45ce64c
- Don't raise ExceptionGroup if only one exception occurred executing command queue 45ce64c
- Fix single zone refresh in update 8f58d2f
- Fix response queue typing 5ed1ef4
- Move AVRCommandError zone argument to end to match kwargs ef62487
Full Changelog: 0.8.1...0.8.2rc1