Skip to content
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

Closed
wants to merge 8 commits into from

Conversation

Padanian
Copy link
Contributor

Fixes possible bug concerning decoding of circulation pump
Prepares const to extend decoding of system status block 3

@Padanian
Copy link
Contributor Author

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)
Copy link
Owner

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

Copy link
Contributor Author

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 Padanian marked this pull request as draft February 29, 2024 16:34
@Padanian Padanian marked this pull request as ready for review March 1, 2024 08:47
@Padanian Padanian changed the title Fixes possible bug and extends block 3 Fixes possible bug, extends block 3, fixes #202 Mar 4, 2024
pail23 added a commit that referenced this pull request Mar 8, 2024
@pail23
Copy link
Owner

pail23 commented Mar 8, 2024

@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

@pail23 pail23 closed this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants