You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Bluetooth device is disconnected and my code still tries to execute write_gatt_char() it raises AttributeError unexpectedly. I suppose it should be reraised with BleakError type.
Sun Jan 17 22:11:28 2021 daemon.err ble2mqtt[1371]: File "/usr/lib/python3.7/site-packages/bleak-0.11.0a1-py3.7.egg/bleak/backends/bluezdbus/client.py", line 768, in write_gatt_char
Sun Jan 17 22:11:28 2021 daemon.err ble2mqtt[1371]: reply = await self._bus.call(
Sun Jan 17 22:11:28 2021 daemon.err ble2mqtt[1371]: AttributeError: 'NoneType' object has no attribute 'call'
The text was updated successfully, but these errors were encountered:
Description
When Bluetooth device is disconnected and my code still tries to execute write_gatt_char() it raises AttributeError unexpectedly. I suppose it should be reraised with BleakError type.
The text was updated successfully, but these errors were encountered: