Closed BoOmka closed 4 years ago
May be it'll be better to update h4/lywsd02 using asyncio?
May be it'll be better to update h4/lywsd02 using asyncio?
I tried to go this way first, but found it way more complicated.
Firstly, there is a lot of properties with setters which don't pair well with asyncio. The will need to be rewritten.
Secondly, bluepy doesn't have any asyncio-friendly realisation, so all we can do is slap loop.run_in_executor
here and there. Spawning multiple threads for just one operation seems a bit of overkill.
Thank you!
Closes #14