Support Smart-Home-Interface Part 5: Main interface#203
Conversation
Field is set to true if value-setter is called. Field is set to false if raw-setter is called. Field can be reset by the interface.
…alculate them on every read
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
b642f7c to
6b1d57b
Compare
|
@Guzz-T Since you've pushed some new commits: Is this still work-in-progress, or ready to be reviewed? |
|
It should be finished. There might be a few minor changes later, but those could also be included in the next pull request. |
…d together by the getters of the list and the definitions
|
Since there are still no review comments, I’ve (once again) pushed a small change to reduce the overall effort required for the whole review 😅 |
|
@kbabioch: Would you have time for a review? |
|
Ah, sorry, totally forgot about this one. As always, super clean pull request, nothing to complain from my point of view. Obviously, you're breaking the whole thing down into small / reviewable pieces and are following good practice in terms of software engineering. Just wondering how "complex" the overall component / interface will become and if it might be over-engineered :-). But this is just my split personality, since I like well architectured software ;-). |
Much of the complexity stems from the fact that the controller/pymodbus interface aborts reading/writing with an exception if a non-existent register is addressed. Therefore, it must be divided into many small operations. This also causes problems with older controller versions that does not support some registers. Maybe I'll find a way later on, which would simplify the whole process. But yes, I have a tendency to make things a little more complex than is strictly necessary. |
|
Could someone please merge? |
Fifth pull request to gradually integrate the smart home interface. This pull request includes:
Contiguous blocks: Helper classes to group read/write operations
Interface: Main interface for the user
Pytest units for new methods and classes
Part 5 for #190
Extensions not yet included: