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

wr2_kostalsteca errors out with unhandled exception when <Yields/> in yields.xml is empty #2268

Closed
andlem74 opened this issue Jun 29, 2022 · 1 comment

Comments

@andlem74
Copy link
Contributor

In case of my inverter, the yields.xml looks like this:
<root> <Device Name="PIKO 3.6 MP" Type="Inverter" Serial="755810BL006202240015" BusAddress="1" NetBiosName="INV006202240015" IpAddress="192.168.0.119" DateTime="2022-06-29T14:27:27"> <Yields/> </Device> </root>
The code in wr2_kostalsteca tries to read data from the empty Yields which fails. Please change the code to handle this condition by returning NAN or 0 for the yield instead of raising an unhandled exception.

@andlem74
Copy link
Contributor Author

Fix merged into master branch.

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

No branches or pull requests

1 participant