-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes possible bug, extends block 3, fixes #202 #207
Conversation
Prepares const to extend decoding of system status block 3
Unable to find the run test failure bug |
"""Read the system state values from the ISG.""" | ||
result = {} | ||
inverter_data = self.read_input_registers(slave=1, address=2500, count=47) | ||
inverter_data = self.read_input_registers(slave=1, address=2500, count=23) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose not to read twice on the modbus since this reduces the performance. When you need to split the function, I propose to do that after this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to fix in a proper way. I accept suggestions.
@Padanian I took the new entities from this PR and merged them into the main branch. I decided to live with the "high complexity" and ignore the C901 since spliting will not make it simpler |
Fixes possible bug concerning decoding of circulation pump
Prepares const to extend decoding of system status block 3