Skip to content

Implement wifi interface for tapodevice #606

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 3 commits into from
Jan 3, 2024

Conversation

rytilahti
Copy link
Member

Implement wifi_scan and wifi_join for SMART devices, allows to change the wifi settings using the cli.

This maybe helpful for #565 if some of those known hardcoded creds work for non-provisioned setups.
Tested to work on P110.

@rytilahti rytilahti added the enhancement New feature or request label Jan 2, 2024
@rytilahti rytilahti added this to the 0.6.0 milestone Jan 3, 2024
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (c810298) 85.30% compared to head (d4001d6) 84.76%.

Files Patch % Lines
kasa/tapo/tapodevice.py 18.51% 22 Missing ⚠️
kasa/smartdevice.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #606      +/-   ##
==========================================
- Coverage   85.30%   84.76%   -0.54%     
==========================================
  Files          38       38              
  Lines        3381     3406      +25     
  Branches      852      857       +5     
==========================================
+ Hits         2884     2887       +3     
- Misses        418      440      +22     
  Partials       79       79              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rytilahti rytilahti requested a review from sdb9696 January 3, 2024 21:27
@rytilahti
Copy link
Member Author

@sdb9696 would you mind testing that the wifi scanning is also working for you? We will refactor this later into its own module and add tests, but this could also go into the alpha release.

@sdb9696
Copy link
Collaborator

sdb9696 commented Jan 3, 2024

Sure, will try this out tomorrow.

@rytilahti
Copy link
Member Author

Ok, I don't think there will be any issues so I'll merge this and prepare the release already tonight 👍

@rytilahti rytilahti merged commit 3692e48 into python-kasa:master Jan 3, 2024
@sdb9696
Copy link
Collaborator

sdb9696 commented Jan 4, 2024

I tested this earlier today and it seemed to work fine. I couldn't be 100% sure of the join as I only have one 2G network which it was already on but no errors and the scan worked fine.

@rytilahti rytilahti deleted the feat/add_tapo_wifi branch January 4, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants