-
Notifications
You must be signed in to change notification settings - Fork 0
Frequent errors about "Address in use" #21
Comments
This error is coming from the library. Try changing the version of the library in your |
Agree the the conflict is likely caused by concurrent use of the query (which requires binding to a static port) but (a) HA should synchronize/not do this concurrently, (b) should handle errors from library - if that's what's causing the second error. Will bump the verison. |
Still get error - see firstof9/tplink-ess-lib#35 (comment) |
Just as an FYI, I was getting "address in use" messages on my single switch, this fix solved it for my specific use case. |
Will make a PR to the underlying library to make a single UDP listener, then reuse it for all the queries. This should make it fully asyncio and more parallelisable. And stop this error (which happens when multiple request-responses overlap) |
Version of the custom_component
0.1.1
Configuration
Three switches configured. It's likely the issue is cause by concurrent queries, and listening to a single network port.
Describe the bug
Errors in the HA logs
This error originated from a custom integration.
also (perhaps related)
Debug log
The text was updated successfully, but these errors were encountered: