Repository navigation
Implement version-dependent CFI data vectors - #86
Merged
Merged
Conversation
This simplifies the version detection by being able to use different fields in the same way.
Move and extract common functions from the SHI so that they can also be used by the CFI
The names must be unique; otherwise, the fields/methods will be overwritten when derived to `LuxtronikInterface`.
…_VERSION as default version LATEST is just a snapshot and usually isn't the right choice. IGNORE is most similar to how it was in earlier releases. But, there are still some functions/constructors that uses LUXTRONIK_VERSION_DETECT.
…on method This is a more general approach to detect the version
Revise the version-dependent generation of SHI components
…mplementation of calculations.get_firmware_version()
Improve some common version-related methods
…DataVector class This enables the version-dependent creation for the CFI data vector.
… DataVector class
Expand the CFI data vector so that only fields that match the version are created
Support version-dependent data vector collections
Note:
These classes are grouped with together in the Luxtronik section.
Use only unique identifiers (e.g., using name mangling like `self.__version`;
this is checked by pytest) for methods and fields and do not use public
methods internally (e.g., `self.version`). Otherwise, the correct function
might not be called.
…o filter the fields to be generated
Support a version-dependent CFI interface
…erfaces This simplifies and standardizes the debug info output.
…LuxtronikSmartHomeInterface can be combined to the LuxtronikInterface without problems Same applies for LuxtronikData and LuxtronikSmartHomeData to LuxtronikAllData
Create version-dependend CFI and SHI interfaces within the LuxtronikInterface
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The data fields of the config interface change from version to version. Until now, this could largely be ignored, since in most cases only fields were added. In #78, it turned out that for some fields, the data type has also changed. Therefore, we must interpret the fields differently depending on the version. To do this, we use the same mechanism that is already used for SHI.
See #79, #80, #81, #82, #83, #84 and #85
Relates to #78