Closed seoyoungjin closed 1 year ago
Have been using the above changes for the last 3-4 weeks. Much more stable with less errors being logged. Any chance of getting this change suggestion put into the master branch. Every time I upgrade Home-Assistant it overwrites my changes.
_udp_transact
already has retries. So this basically triples the retries. Which is ok, but we should just increment RETRIES
instead. I'd merge a PR that did that.
OK. I guess we just need to increase the retries somewhere. I think with everything on 2.4GHz wifi and other devices using that frequency combined with thick walls my poor little switches get a little lost sometimes.
I met frequently S20 exception because my switch is too far. I added retry code to s20.py like this.