andrewsayre / pyheos

An async python library for controlling HEOS devices through the HEOS CLI Protocol
Apache License 2.0
14 stars 12 forks source link

Runtime error in connection.py under homeassistant #19

Open renede opened 3 years ago

renede commented 3 years ago

pyheos version with the issue: I guess this is the latest pyheos version, running in homeassistant 2021.3.4

Python version and environment: python 3.8

Description of problem: I got 21 error messages in home-assistant.log, with increasingly longer tracebacks. The first traceback is shown below.

Traceback (if applicable):

2021-03-22 11:05:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pyheos/connection.py", line 179, in _reconnect
    await self._disconnect()
  File "/usr/local/lib/python3.8/site-packages/pyheos/connection.py", line 143, in _disconnect
    await self._response_handler_task
  File "/usr/local/lib/python3.8/site-packages/pyheos/connection.py", line 219, in _response_handler
    commands.remove(event)
ValueError: list.remove(x): x not in list

Additional information: Denon AVR-X1600H with firmware 1.544.240.