Skip to content

0.7.0

Compare
Choose a tag to compare
@crowbarz crowbarz released this 09 Jul 20:07
· 71 commits to dev since this release

What's Changed

  • select_listening_mode now accepts arguments mode_name or mode_id (requires one argument)
  • select_source now accepts arguments source or source_id (requires one argument)

Breaking Changes

  • The listening_mode argument of select _listening_mode has been renamed to mode_name
  • Most PioneerAVR methods now raise exceptions derived from PioneerError when an error is encountered, rather than returning false, None or similar error value. Some instances that currently raise ValueError or SystemError will also raise PioneerError subclasses in the near future
  • send_raw_request no longer accepts an argument ignore_error and will always raise exceptions on error. Use ignore_error with send_command to have exceptions handled for you
  • asyncio yields have been optimised and minimised, which may cause certain sequences of operations to happen in a different order

All Changes

  • Update class methods to throw exceptions on error ef2c580
  • Rationalise asyncio.sleep(0) calls ac872ff
  • Fix frequency step error, fixes crowbarz/ha-pioneer_async#43 758cde0
  • Raise PioneerError subclasses instead of returning None/False to flag errors in send_raw_request and _wait_for_response a6a29d4
  • Remove ignore_error argument in send_raw_request and _wait_for_response a6a29d4
  • Handle ignore_error in send_command by catching exceptions a6a29d4
  • Refactor send_raw_request to use send_command a6a29d4
  • Raise RuntimeError instead of SystemError 940a8cb
  • Rename Pioneer exception classes to *Error a84d5bf
  • Fix AVRCommandError class rename 06986f8
  • Perform initial update only on Zone 1 power on 0b6b536
  • Fix enum comparisons 80c8248
  • Fix zone enum inequality comparisons de0d008