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

fix: improve schema validation so it succeeds for qvolt_hyb_g3_3p inverter #163

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

Conversation

kinkerl
Copy link

@kinkerl kinkerl commented Jun 21, 2024

Hi,
I am using this lib now for more than a year and its works well. However, this fix i did here is required to get a successful data validation. I get a validation error when I do not apply it. I just tried it again with the latest master and same problem so here is now a PR to resolve this issue upstream.
Cheers

Copy link
Owner

@squishykid squishykid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thank you for raising this PR. I can see that you are changing the schema and all the tests pass. This is great!

Can you please add some additional tests so your new schema continues working? You will need to capture the response from your inverter and then add a 'InverterUnderTest' like in this example: https://github.com/squishykid/solax/pull/167/files#diff-5dbc88d6e5c3615caf10e32a9d6fc6ff683f5b5814948928cb84c3ab91c038b6

@kinkerl
Copy link
Author

kinkerl commented Sep 13, 2024

hm, the tests fail but i don't understand how my change could result in this error. any hints?

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