Add support for SwitchBot Lock#84673
Conversation
|
Hi dsypniewski 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! |
|
Hey there @bdraco, @Danielhiversen, @RenierM26, @murtas, @Eloston, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Config flows require 100% test coverage. |
|
Hi dsypniewski 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! |
|
Hi dsypniewski 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! |
|
Hi dsypniewski 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! |
|
Since this is a significant contribution, we would appreciate you'd added yourself to the list of code owners for this integration. ❤️ Please, add your GitHub username to the For more information about "code owners", see: Architecture Decision Record 0008: Code owners. |
|
Relevant feature request: https://community.home-assistant.io/t/switchbot-lock/444425 |
|
Thanks @dsypniewski |
| USER_INPUT, | ||
| ) | ||
| await hass.async_block_till_done() | ||
| assert result["type"] == FlowResultType.FORM |
There was a problem hiding this comment.
I missed this before I merged it, but we should finish all config flow tests till they reach and abort or create state to ensure the flow can recover from an error state
|
Considering the documentation for this feature: home-assistant/home-assistant.io#25421 (comment) I would say that we need to revert this PR to get it out of our release path and make sure we make this user-friendly before re-adding it again. /CC @bdraco @dsypniewski |
|
I could update the config flow to give the user an option to provide the key as is now or directly provide authentication details and make it retrieve the key. |
|
Here is how this could work: dsypniewski@738b977 |
|
@dsypniewski I think that is a good solution. Your comment in dsypniewski@738b977#diff-90eaad85d101c1179240f5f702037e5673ad1ca380497f43a0238bbe62fc1374R350 is spot on that it needs to live in the library. Since you had already opened a PR while I was sleeping, I tested it the best I could (I don't actually get the lock I ordered until later tonight so I will test again when it comes in), cleaned up the lint issues and released pySwitchbot 0.34.0 this morning. |
Proposed change
sblibs/pySwitchbot@0.31.0...0.33.0
Type of change
Additional 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.To help with the load of incoming pull requests: