Skip to content
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

Python 3.10 compatibility #19

Open
pattyland opened this issue Jul 6, 2022 · 1 comment
Open

Python 3.10 compatibility #19

pattyland opened this issue Jul 6, 2022 · 1 comment

Comments

@pattyland
Copy link
Contributor

Hi,

I just read that this library don't work with Python 3.10 because of bluez: https://deploy-preview-23287--home-assistant-docs.netlify.app/blog/2022/07/06/release-20227/#improved-stability-and-performance-and-python-310
(Open "Bluetooth (multiple integrations)" in the breaking charges section)

Do you think you could do something to fix that? It would be sad if this integration would break as so think it's the biggest user of this library:(

@k0rventen
Copy link
Owner

Hi Sören,

unfortunately there is nothing I can do regarding the bluepy lib..

I am aware of the bleak (https://pypi.org/project/bleak/) library that could replace bluepy for the BLE transmission, but that would require significant effort, and breaking changes regarding the avea module itself (a v2 with explicit new dependencies)

I'm not using the lib anymore, and i'm not quite sure i have still a bulb laying around, but if you're up for the task, i think we could give it a try 😄

From what I can see the main changes would be:

  • moving to async,
  • using this class for scanning in discover_avea_bulbs()
  • using this method instead of writeCharacteristic().

as the reverse engineering and logic is already done, it's not the end of the world, but i'm not that acquainted with async programming in python..

Let me know if you could help, i'll search my bulbs, and we'll make this work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants