dewet22 / givenergy-modbus

A python library to access GivEnergy inverters via Modbus TCP on a local network, with no dependency on the GivEnergy Cloud.
Other
19 stars 15 forks source link

Update battery.py #16

Closed holdestmade closed 1 year ago

holdestmade commented 1 year ago

I have 2 batteries but the list of batteries returns 3, one with a serial of ' ' (10 spaces)

First battery is correct with a serial number, second returns' ' (10 spaces) and third has a serial number.

This should hopefully discount that incorrect battery.

dewet22 commented 1 year ago

Oh, interesting edge case. Thanks for reporting!