kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
59 stars 51 forks source link

on any connection error, reconnect #34

Closed Human closed 4 years ago

Human commented 4 years ago

This fixes #25 , but it may not be optimal. I would have preferred to provide a unit test that fails before this patch and passes after it, but I am not familiar enough with async in python to do it.

Human commented 4 years ago

@kellerza Is there anything else you need me to do for this?

johansmitsnl commented 4 years ago

Looking forward to a new release :smile:

kellerza commented 4 years ago

Thanks @Human ! The error logic is a bit wide, but since we haven't had any other reports of errors this should work. (Back from my holiday break,- will release a new version before the weekend)