mvn23 / pyotgw

A library to interface with the OpenTherm Gateway through serial or network connection.
GNU General Public License v3.0
28 stars 16 forks source link

Fix bug during disconnect handling #7

Closed aequitas closed 5 years ago

aequitas commented 5 years ago

fixes:

2019-04-16 20:44:26 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._call_connection_lost of SerialTransport(None, None, None)>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 399, in _call_connection_lost
    self._protocol.connection_lost(exc)
  File "/usr/local/lib/python3.7/site-packages/pyotgw/protocol.py", line 68, in connection_lost
    for q in [self._cmdq, self._updateq, self.msgq]:
AttributeError: 'protocol' object has no attribute 'msgq'
mvn23 commented 5 years ago

Thanks, saw this in the logs once or twice but didn't look into it yet.