-
-
Notifications
You must be signed in to change notification settings - Fork 239
General cleanups all around (janitoring) #63
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
===========================================
- Coverage 76.27% 62.32% -13.95%
===========================================
Files 7 8 +1
Lines 826 1136 +310
Branches 110 165 +55
===========================================
+ Hits 630 708 +78
- Misses 172 393 +221
- Partials 24 35 +11
Continue to review full report at Codecov.
|
… known ports, fix docstrings
…ethods ({set,get_icon} and set_time)
… multiple devices
…docstring coverage)
kirichkov
left a comment
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.
Looks good to me
The commit messages should be self-explanatory. This is based on #59, so that has to be merged before this one. If wanted, I can split this into separate PRs..
The main goal behind the changes were to follow the DRY principle (removing unnecessary rtype, return etc. documentation where we already have type hints), splitting the unittests to class-specific files (for maintainability, to allow better "run only failed tests" from IDEs, and to make it less scary), and removing some useless public methods (set_icon, get_icon, set_time are not implemented and/or not useful for anyone using the api).
This will also move
plugsfrom smartstrip to the smartdevice class under the namechildren. This way iterating over it using smartdevice reference does not require separate type casting.3e19c56 strip: rename plugs property to children and move it to smartdevice
62fe83a improve bulb tests, simplify conftest
12a2f3c bulb: raise exception on color_temp error cases instead of returning zero values
8e673c7 pyproject: include cli tool to coverage, add config for interrogate (docstring coverage)
d8e3be5 remove adjust flake8 ignores (we have no setup.py anymore)
f05defd cli: indent device output to make it more easily readable when having multiple devices
5b7c257 Revise docstrings, remove superfluous information and remove unused methods ({set,get_icon} and set_time)
e7e858d protocol: remove the port parameter from query, as there are no other known ports, fix docstrings
a2454e5 Move tests to device-type specific test files to make improvements more approachable