8000 Simplify device class detection for discovery, fix hardcoded timeout by rytilahti · Pull Request #112 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Simplify device class detection for discovery, fix hardcoded timeout #112

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

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

rytilahti
Copy link
Member
@rytilahti rytilahti commented Nov 7, 2020

With this PR the device class detection is made purely using the information available in the system.get_sysinfo call.

This will make it easier to approach fixing #105

@codecov-io
Copy link
codecov-io commented Nov 7, 2020

Codecov Report

Merging #112 (c8a1e07) into master (70061cb) will increase coverage by 0.13%.
The diff coverage is 46.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
+ Coverage   72.88%   73.02%   +0.13%     
==========================================
  Files          10       10              
  Lines        1232     1227       -5     
  Branches      185      183       -2     
==========================================
- Hits          898      896       -2     
+ Misses        300      298       -2     
+ Partials       34       33       -1     
Impacted Files Coverage Δ
kasa/discover.py 40.17% <46.15%> (+<0.01%) ⬆️
kasa/smartdevice.py 82.73% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70061cb...c8a1e07. Read the comment docs.

rytilahti referenced this pull request in Belval/python-kasa Nov 7, 2020
@jimboca
Copy link
Contributor
jimboca commented Nov 8, 2020

Thanks for fixing the timeout issue! I meant to report that last week but forgot.

@rytilahti rytilahti merged commit 56eb2cd into python-kasa:master Nov 8, 2020
@rytilahti rytilahti deleted the refactor/simplify_discover branch November 8, 2020 13:32
@rytilahti rytilahti added the bug Something isn't working label Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0