Only initialize Nuki configurations#49747
Only initialize Nuki configurations#49747balloob merged 4 commits intohome-assistant:devfrom darkson95:darkson95-nuki-integration-patch
Conversation
Workaround for #48358
|
Hi @darkson95, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
|
This wouldn't import configurations when they don't specify a port (e.g. using the default port)? |
|
Yes, but if you don't specify a port, you will get an error like @remyderuysscher (#48358 (comment)). If you configure Nuki over the UI the port is set. |
|
Couldn't we just set the default port then? Otherwise it wouldn't import configurations that don't specify a port (should be the bulk of them). The configuration import should also be removed in the Juni release as it will be deprecated for 2 releases then. |
balloob
left a comment
There was a problem hiding this comment.
For now it's an ok bug fix but this is the complete wrong approach.
Platforms don't have to be configured under their domain, they can be configured under light bla: in YAML. That's being missed here. The only way to do this correctly is to have an async_setup_platform to support the old config and then import that.
For now this can go in the hot fix, but this should be refactored.
|
I think the next release will drop yaml support, right @pree ? |
Yes, I will open a PR soon for this. |
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Breaking change
No breaking changes, only a bug fix.
Proposed change
The Nuki integration initializes now only lock-configurations if it has the following 3 keys in it: host, port, token
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast 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..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: