-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PySwitchBot 0.15.0 #103
Comments
Hi @CordMaster, thanks for your suggestions! I am following the changes/updates in PySwitchbot. |
Thanks for suggesting sbtinstruments/asyncio-mqtt.
If you are interested in testing the compatibility with newer versions of pySwitchbot and maybe even the switch to async, I would greatly appreciate help via PRs. Thank you! |
Thanks for the response! I absolutely forgot to thank you for your effort on this wonderful library!! I did do a little tinkering, and found that it does work if (almost) all pySwitchbot commands are run as blocking in their own loop using Thanks again, |
Thanks a lot for testing the concurrent/async approach and your feedback! |
Hello once more! I did a bit of work on the async transition, and from what I can tell it functions well. There is still a bit of work to be done on error handling, and the unit tests need updating, but if you choose to go with Thanks, |
Great! Thanks a lot for publishing your work and reporting back! |
…, drop compatibility with python3.8, alpine v3.18.4 base image #103 #180 (comment) #127 (comment)
It seems that the version of PySwitchBot used is a bit out of date and using pybluez. While this is not an issue right now, recent versions have moved to Bleak as the Bluetooth LE backend, and now use an async API as opposed to the blocking one used in 0.12.0. Are there any plans to move to an async loop and support newer versions?
One option would be to move the MQTT package to https://github.com/sbtinstruments/asyncio-mqtt.
I would be more than happy to help out if this is in the roadmap.
Thanks,
--CordMaster
The text was updated successfully, but these errors were encountered: