Skip to content

Leverage data from UDP discovery to initialize device structure#132

Merged
rytilahti merged 6 commits intopython-kasa:masterfrom
dlee1j1:master
Feb 6, 2021
Merged

Leverage data from UDP discovery to initialize device structure#132
rytilahti merged 6 commits intopython-kasa:masterfrom
dlee1j1:master

Conversation

@dlee1j1
Copy link
Copy Markdown
Contributor

@dlee1j1 dlee1j1 commented Feb 5, 2021

Also avoids unnecessary subsequent TCP calls to device

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 5, 2021

Codecov Report

Merging #132 (4e1b1b1) into master (98b40b5) will decrease coverage by 0.03%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #132      +/-   ##
==========================================
- Coverage   73.02%   72.98%   -0.04%     
==========================================
  Files          10       10              
  Lines        1227     1229       +2     
  Branches      183      183              
==========================================
+ Hits          896      897       +1     
- Misses        298      299       +1     
  Partials       33       33              
Impacted Files Coverage Δ
kasa/cli.py 54.90% <0.00%> (+0.16%) ⬆️
kasa/discover.py 40.17% <0.00%> (ø)
kasa/smartdevice.py 82.30% <33.33%> (-0.44%) ⬇️

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 98b40b5...4e1b1b1. Read the comment docs.

Copy link
Copy Markdown
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great improvement, thanks a lot! I haven't tested it personally, but it reads reasonable. Could you remove the .gitignore modification though?

Comment thread .gitignore Outdated
Copy link
Copy Markdown
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants