Skip to content

v3.2.2

Compare
Choose a tag to compare
@mvdwetering mvdwetering released this 16 Jun 20:24
· 404 commits to master since this release

Deprecation notice

The ynca.Receiver class has been deprecated and replaced with the ynca.Ynca class.
This is to better represent that this library is about the YNCA API.

The ynca.Ynca class is a direct replacement for the deprecated ynca.Receiver class except for the inputs attribute on the ynca.Receiver class. That attribute is not available as such in YNCA and therefore does not belong into a class representing the API. However since it is useful functionality that most clients will need it has been replaced with the ynca.get_all_zone_inputs helper function with takes a ynca.Ynca class as input and returns a dictionary like the inputs attribute did.

There is a backward compatibility ynca.Receiver class in place which still work as before, but logs a deprecation warning.

The ynca.Receiver backward compatibility class will be removed in the next major version (timeframe unknown).

Changes

  • Introduced ynca.Ynca as replacement for ynca.Receiver which is now deprecated
  • Added backward compatibility ynca.Receiver class
  • Added ynca.get_all_zone_inputs helper function to replace the input attribute on ynca.Receiver
  • Misc minor code cleanups
  • Fixed issue with YNCA console import
  • Renamed YNCA Console to YNCA terminal
  • Updated README and example.py for all changes

Note

Version v3.2.0 and v3.2.1 have not been released or retracted as they had errors which have been fixed in v3.2.2

Full Changelog: v3.1.0...v3.2.2