-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
Update tplink config to include aes keys #125685
Conversation
Hey there @rytilahti, @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
init changes look good |
testing this now |
all devices working |
config entry migrations look good |
keys are saved for working devices |
restarting now |
"homeassistant.components.tplink.async_create_clientsession", | ||
return_value="Foo", |
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.
Is it possible to patch the lib here instead of HA internals? I realize this is the public API exposed to the integration, and its unlikely to change, but it would still be better to avoid patching it.
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.
This isn't great but we are patching the API being exposed to the integration so its less concerning. We should clean this up in the future so we don't make this PR any larger as it likely will need another lib bump to make it patchable in the lib, and I'm already concerned about the size of this PR for a patch release. I think we need to do it for a patch release given the impact of the problem though.
1 comment for the tests, doing profiles now |
profile is clean confirmed issue is solved |
In a subsequent PR maybe we could generate the first key in an executor thread? |
Thats a good idea. Even a single generation blocks the loop for longer than we usually would like |
Proposed change
PR for storing aes keys in the config entry:
device
from discovery through to the config flow to prevent an extra discovery request.Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: