GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Fix partial in enum for Python 3.13 by cdce8p · Pull Request #1993 · rytilahti/python-miio Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@ ## master #1993 +/- ## ======================================= Coverage 82.26% 82.26% ======================================= Files 197 197 Lines 19139 19144 +5 Branches 1050 1052 +2 ======================================= + Hits 15744 15749 +5 Misses 3218 3218 Partials 177 177 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cdce8p, looks rather straight-forward! As this is only affecting the cli tool, I'm ready to merge it even though I haven't been able to test it against a real device.
Before doing that, should the check be against >=3.13 instead of 3.11, though?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Not sure about that. It has been a while but AFAIR I first saw the DeprecationWarning in the Home Assistant test suite.
Enum.member is available since 3.11 and from what I've read on the cpython issue, it's the "correct" way to do it anyway. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Fair enough, IIRC, this was just a hack to make the cli nicer to use, so if it doesn't work will need to revisit it (e.g., by converting away from the enum to simply use a dict for mapping). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rytilahti - if I read correctly, the fix has been merged, but a new version hasn't been released? ( hence the comments in home-assistant/core#132902 ) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is there any news on the topic "member()"? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
test_set_property_by[value_type4-1] fails on Python 3.13
There was an error while loading. Please reload this page.