Add support for tapo login_version 3 in sslaestransport#1638
Conversation
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1638 +/- ##
=======================================
Coverage 92.98% 92.98%
=======================================
Files 157 157
Lines 9750 9753 +3
Branches 992 993 +1
=======================================
+ Hits 9066 9069 +3
Misses 484 484
Partials 200 200 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@rytilahti This one should be good as well, here's a summary of the PR:
|
|
A minor thing: in the CLI, autodiscovery works, but explicitly passing elif type in {"smart", "camera"} or (device_family and encrypt_type):
if type == "camera":
encrypt_type = "AES"
https = True
login_version = 2
device_family = "SMART.IPCAMERA" |
|
That said, perfect is the enemy of good :) I think this PR is necessary for some devices and working already, so I believe it should be merged as-is. |
|
@paravoid I'll look into the CLI issues before we merge this. There's still a lot going on with other transport and protocol issues as well that are trying to be resolved before a new version is released. |
|
@rytilahti I've rebased. I'm not really sure what #1602 is doing to be honest. Maybe. Let me pull those fixture files and see if they work with this branch. The original PR for those #1596 was closed out automatically. |
|
@rytilahti No, #1602 still does things differently because the actual fixture files in #1596 don't work in my code here. The discovery_result is different for D225 does not have any encrypt_info and that is what the changes in #1602 fix. Then you should be able to re-open #1596 and add the fixture files from there. This one is good to go though. |
…-3-default-credentials
|
@rytilahti This should be clear to go now. |
|
@paravoid I missed getting the fix for the CLI into this release, will get it pushed in another PR. Thanks! |
Updates to get_default_credentials and DEFAULT_CREDENTIALS for handling a new default password for encryption_type 3 in TAPOCAMERA devices that use encryption_type 3.
This adds support for devices like TC40.