You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.8 is no longer supported as of this release. Minimum supported Python version is now 3.9. Future note: Support for Python 3.9 will be deprecated after the 0.9.x release series, after which Python 3.10 will be the minimum supported version.
Updated types to python 3.9 generics typing
Major data refactor
This release contains a major reorganization of the internal data dict, and in-turn the resulting json output. Changes include:
Data reorganized by device and common group.
Flags values get their own group.
Multiple data keys renamed for correctness, clarity, or newly discovered functionality.
You can check out the new json format here.
Changes:
Use constants for all data dict keys.
Use Enums for flags and int values
Added:
ScreenLogicGateway.get_data() now supports returning subsets of data or individual values. get_data() accepts a "path" in the form of multiple parameters of keys to the desired data, and will return only that data.
Shortcut methods get_name() and get_value() have also been added. These will return the value of the "name" or "value" key that exists - if it exists - within the data specified by the data "path".
By default get_data(), get_name(), and get_value() will return None if the specified path or key is not found. Keyword arg strict=True can be specified to raise KeyError exception if the path or key is not found.