0.3.5 fix for streams on Python >= 3.7
Starting with v.3.7 of Python, the close() method has been implemented to close the stream and the underlying socket.
Its lack in code leads to a crash after a few hours of running inside Home Assistant.
Starting with v.3.7 of Python, the close() method has been implemented to close the stream and the underlying socket.
Its lack in code leads to a crash after a few hours of running inside Home Assistant.