k0rventen / avea

Control Elgato's Avea bulb using python3 !
MIT License
8 stars 1 forks source link

Python 3.10 compatibility #19

Open pattyland opened 2 years ago

pattyland commented 2 years ago

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 commented 2 years ago

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:

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 👍