basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
362 stars 99 forks source link

Requirement is pinned for miflora 0.6: btlewrap==0.0.8 #149

Closed MartinHjelmare closed 3 years ago

MartinHjelmare commented 3 years ago

Thanks for your support of Home Assistant!

ChristianKuehnel commented 3 years ago

Hi @MartinHjelmare ,

we recently pinned the btlewrap version as we had a bug caused by a non-backwards compatible change in btlewrap. To avoid such issues, we pinned the version number.

MartinHjelmare commented 3 years ago

That's ok for now. I'm opening these issues to raise awareness as pinning a version will have larger consequences in the future and may stop an integration from working if there are non resolvable package conflicts.

Please unpin as soon as possible.

fabaff commented 3 years ago

The pinning is problematic for the distribution packages as well. The Fedora package has to require the latest package to pass the review.

This means that btlewrap-0.0.10 is present.

ChristianKuehnel commented 3 years ago

I guess the main issue is: we need a new maintainer for this library and so far nobody has stepped up...

Beyond that: How do you ensure compatibility with different versions? We do need physical hardware to check if the communication is actually working...

basnijholt commented 3 years ago

@balloob, I have just released v0.7.0 :tada:

This fixes the typing requirement and means https://github.com/home-assistant/core/pull/37707/files and Mi Flora disabling in Home Assistant can be restored!

https://pypi.org/project/miflora/#files

MartinHjelmare commented 3 years ago

Note that btlewrap still is hard pinned to 0.0.10 in miflora 0.7.0, so might become incompatible in the future when a new release is done of btlewrap.

basnijholt commented 3 years ago

In the future, I can easily do patch releases now that @open-homeautomation gave me permissions here πŸ˜„