I’ve been getting the below error in my logs hundreds of times a day. Otherwise the tracker seems to be working (though it’s not critical for my automations).
2021-05-20 17:59:49 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 174, in update_bluetooth
await perform_bluetooth_update()
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 138, in perform_bluetooth_update
devices = await hass.async_add_executor_job(discover_devices, device_id)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 56, in discover_devices
result = bluetooth.discover_devices(
File "/usr/local/lib/python3.8/site-packages/bluetooth/bluez.py", line 26, in discover_devices
device_id = _bt.hci_get_route()
OSError: [Errno 19] No such device
I use docker and have set up the USB dongle like so:
volumes:
- /dev/bus/usb:/dev/bus/usb
and in configuration.yaml:
device_tracker:
- platform: bluetooth_tracker
new_device_defaults:
track_new_devices: false