ColinRobbins / ha-lightwave-trv-proxyless

Temporary repo for Home Assistant Lightwave RF V1 integration.
MIT License
0 stars 0 forks source link

Proxyless error due to race condition #3

Closed ColinRobbins closed 1 year ago

ColinRobbins commented 1 year ago

The TRV proxy code creates a UDP listener to receive data on TRV status.

However, to send commands to a switch, a temporary listener is also created on the same port to get the command status response.

This it is "random" which listener sees the response, creating errors in the logs, even in the command works.

Code needs refactoring to use a single multi-purpose listener.

ColinRobbins commented 1 year ago

Fixed