-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add the ability to get the values safely #5
base: master
Are you sure you want to change the base?
Conversation
name="kostalpyko", | ||
version="v0.5", | ||
packages=["tests", "kostalpyko"], | ||
name="kostalpiko", |
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.
Why did you rename this?
@rcasula |
…values Fix indices and safely get values
In the PV inverter here I found an installation with three phases and 2 strings, which was not covered up until now for this library.
Added option for 2 strings / 3 phases, which is apparently also possible :-) Thanks for this great library!
Forgot to import the new constant DOUBLE_STRING_THREE_PHASES_INDICES
Shouldn't have done a PR close to midnight ;-) Thanks for catching the bug with the indices.
PR for configuration with 2 strings and 3 phases
Make latest PR (3 phases 2 strings) available in Pypi
Can we get, please, merged this (and eventually revert the rename only)? I'm waiting for this merge and as far as I found there are more ppl with this issue,... |
This PR is really useful in cases like PIKO 3.0. At the moment if you try to get string2 value in a PIKO 3.0 you get a index out of bound exception.
I will make a PR to the kostalpiko-sensor-homeassistant repo to use these functions instead of raw_value[index].