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

Add the ability to get the values safely #5

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

rcasula
Copy link

@rcasula rcasula commented Oct 30, 2020

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].

name="kostalpyko",
version="v0.5",
packages=["tests", "kostalpyko"],
name="kostalpiko",
Copy link
Owner

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 rcasula closed this Nov 2, 2020
@gieljnssns
Copy link
Owner

@rcasula
Don't understand me wrong.
I like your new code, but I don't know why you gave this package a new name.

@gieljnssns gieljnssns reopened this Nov 2, 2020
Roberto Casula and others added 17 commits November 16, 2020 08:27
…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
@petos
Copy link

petos commented Aug 21, 2022

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,...

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.

5 participants