core: Uncaught thread exception

The problem

Recurring error multiple times a minute showing up in the logs.

Environment

  • Home Assistant Core release with the issue: 118.0
  • Last working Home Assistant Core release (if known): 117.3
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: roomba
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml


Traceback/Error logs


Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:318
First occurred: 12:03:37 PM (38 occurrences)
Last logged: 12:11:05 PM
Uncaught thread exception

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1197, in loop
    rc = self.loop_write(max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1598, in loop_write
    rc = self._packet_write()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2374, in _packet_write
    self._do_on_disconnect(0)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3360, in _do_on_disconnect
    self.on_disconnect(self, self._userdata, rc)
TypeError: _internal_on_disconnect() missing 1 required positional argument: 'rc'



Additional information

For MQTT I use:

  • Home Assistant Add-on: Mosquitto broker, version 5.1

This are the only custom things I have (I don’t use HACS):

  • /local/community/auto-entities.js
  • /local/community/slider-entity-row.js

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

This should be fixed by #43594 which bumps roombapy to 1.6.2 which includes pschmitt/roombapy#45

Found it. I’m using the Roomba integration (added via discovery).

This is what the search found: Binary file /usr/local/lib/python3.8/site-packages/roomba/pycache/mqttclient.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/roomba/mqttclient.py:63: mqtt_client.on_disconnect = self._internal_on_disconnect /usr/local/lib/python3.8/site-packages/roomba/mqttclient.py:89: def _internal_on_disconnect(self, client, userdata, flags, rc):