-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
airpurifier_miot: Move favorite_rpm from MB4 to Basic #1070
Conversation
favorite_rpm is also a 3H parameter so it should be in the basic part
Sorry but I'm not familiar with this check and I don't understand why it failed. |
The error came from black (so code formatting, likely some whitespace changes). The simplest way to fix is to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! As it is unclear which devices support this, let's play it safe and avoid crashing just in case that property is not available on some devices.
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Teemu R. <tpr@iki.fi>
Please run |
yes, it's on going: |
Done for the formatting but I had this at the end: devtools/containers.py:61: error: Incompatible types in assignment (expression has type "List[_T]", variable has type "Optional[List[Dict[str, Any]]]") |
That is probably dependent on your mypy version; I don't get any errors on devtools locally and the CI passed just fine :-) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1070 +/- ##
=======================================
Coverage 75.40% 75.40%
=======================================
Files 73 73
Lines 8367 8367
Branches 745 745
=======================================
Hits 6309 6309
Misses 1874 1874
Partials 184 184 ☔ View full report in Codecov by Sentry. |
Hello @rytilahti , |
Hi @SylvainPer, I'll make a release in a couple of weeks when I return from the holidays, if @syssi doesn't beat me. Wrt. checking the library version, you can use the standard
There is some module (maybe even in stdlib?) that allows parsing the string to something that can be used in sane comparisons, but I cannot recall the name of that. |
@rytilahti Feel free to release as soon as possible. I'm at holidays too and cannot provide much support at the moment. |
Thanks for your return, I'm also at holidays now so enjoy them ! |
found this: >>> from packaging import version
>>> version.parse("2.3.1") < version.parse("10.1.2")
True |
favorite_rpm is also a 3H parameter so it should be in the basic part
Tested on my local setup, I wasn't able to read this parameter before the modification with the status() function.