asantaga / lightwaverf_HA_EnergySensor

Home Assistant Sensor for the LightwaveRF energy monitor
MIT License
5 stars 3 forks source link

Close the socket after we have timed out #8

Closed proffalken closed 2 years ago

proffalken commented 2 years ago

Fixes #7

This PR closes the socket after we've done the check for data and processed the data, resetting the connection for the next time we run.

The "address in use" error no longer appears in my logs.

I'm still not getting any data, but I suspect that's down to my own setup rather than an issue with the code.

asantaga commented 2 years ago

thank you