-
Notifications
You must be signed in to change notification settings - Fork 42
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
Duplicated registers in Inverter and StorEdge #110
Comments
It is a fix to prior to the little endian map Now there's the little endian map for the items that require it under inverter. |
We have in the When you change the value of these registers then, which one should be used for the change? The one from the |
The StorEdge class isn't needed now, as the registers that require little endian under the Inverter class now have a lookup map which automatically uses little endian for the registers that need it under Inverter class |
I see...the StorEdge was like a workaround until there was a way that these registers be part of the We have however the Why not make them part of the |
These ones: https://github.com/nmakel/solaredge_modbus/blob/master/src/solaredge_modbus/__init__.py#L703-L705 - they are not part of the |
Actually they are there, but with different offsets: https://github.com/nmakel/solaredge_modbus/blob/master/src/solaredge_modbus/__init__.py#L555-L557 |
Then shall we remove the |
It has zero effect on functionality. You can use either one. It's easier to use the inverter one to call everything at once. This is someone else pull request and ultimately it can be removed should the author be ok with that |
Yes, you are right. But maybe it is still better to cleanup the code from unnecessary class, isn't it? I'll create a PR, that should be very quick. |
The following registers in
Inverter
class and the ones inStorEdge
class are duplicating each other (almost all of them).Are there any good reasons for that?
The text was updated successfully, but these errors were encountered: