aioesphomeapi
aioesphomeapi copied to clipboard
Adjust ble timeouts to be longer than bleak timeouts
The default timeouts were shorter than the timeout used by bleak and the surrounding stack which could lead to unexplained timeout failures.
fixes #286
I'm able to successfully pair the eve motion with the adjusted timeouts.
Looks very promising. I restarted few times and even if I had to reload the integration for a few devices, once it starts is very stable. Also it recovers very well from the esp32 disconnect problem.
Thank you!
thanks for testing
It looks like we also need to raise bleak error when the device disconnects in the middle of an op but that probably needs to happen on the esphome bleak client instead of here.
This should fix the missing retries https://github.com/home-assistant/core/pull/80885
This should improve the handling of running of connection slots https://github.com/Bluetooth-Devices/bleak-retry-connector/pull/56