mvandersteen / SungrowInverter

Allows to pull data from a Sungrow residential inverter via Modbus TCP
Other
26 stars 16 forks source link

FIX#2 - Division by zero error early in day when pv generation is zero (Issue #6) #15

Closed tinywiz closed 2 months ago

tinywiz commented 6 months ago

Fixed division by zero. Catch the exception "ZeroDivisionError", then set to 0.