-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Fix timeout issue on Roomba integration when adding a new device #129230
Conversation
DEFAULT_DELAY = 1 to DEFAULT_DELAY = 100 to fix timeout when adding a new device
continuous=False to continuous=True to fix timeout when adding a new device
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.
Hi @AuroreVgn
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!
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hey there @pschmitt, @cyr-ius, @shenxn, @Orhideous, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Co-authored-by: Jan Bouwhuis <[email protected]>
At a few spots in
core/tests/components/roomba/test_config_flow.py Line 1122 in 2888e57
and core/tests/components/roomba/test_config_flow.py Lines 1127 to 1128 in 2888e57
the I suggest you import changed the I guess this should fix the failing checks. |
Change CONF_DELAY to match DEFAULT_DELAY (30 sec instead of 1)
Done ! |
Thanks! Mark your PR ready if you are finished. |
Co-authored-by: Jan Bouwhuis <[email protected]>
@@ -206,7 +206,7 @@ async def test_form_user_discovery_and_password_fetch(hass: HomeAssistant) -> No | |||
assert result3["data"] == { | |||
CONF_BLID: "BLID", | |||
CONF_CONTINUOUS: True, | |||
CONF_DELAY: 1, | |||
CONF_DELAY: DEFAULT_DELAY, |
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.
You also need to update the other occurrences and addd the import.
Do a git pull
to make sure you include the applied suggestions.
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.
I am not familiar to this process, could you please tell me how to do a git pull
?
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.
Like you used git clone
to clone a he HA core repository. But let me help to commit the changes for you.
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.
You can commit for me, do I need do to something ?
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.
continuous=False
DEFAULT_DELAY = 30
CONF_DELAY: 30,
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.
Nice first contribution!
Thanks @AuroreVgn 👍
Thanks for your help :-) |
…e-assistant#129230) * Update const.py DEFAULT_DELAY = 1 to DEFAULT_DELAY = 100 to fix timeout when adding a new device * Update config_flow.py continuous=False to continuous=True to fix timeout when adding a new device * Update homeassistant/components/roomba/const.py Co-authored-by: Jan Bouwhuis <[email protected]> * Update test_config_flow.py Change CONF_DELAY to match DEFAULT_DELAY (30 sec instead of 1) * Update tests/components/roomba/test_config_flow.py Co-authored-by: Jan Bouwhuis <[email protected]> * Use constant for DEFAULT_DELAY in tests --------- Co-authored-by: Jan Bouwhuis <[email protected]> Co-authored-by: jbouwh <[email protected]>
…9230) * Update const.py DEFAULT_DELAY = 1 to DEFAULT_DELAY = 100 to fix timeout when adding a new device * Update config_flow.py continuous=False to continuous=True to fix timeout when adding a new device * Update homeassistant/components/roomba/const.py Co-authored-by: Jan Bouwhuis <[email protected]> * Update test_config_flow.py Change CONF_DELAY to match DEFAULT_DELAY (30 sec instead of 1) * Update tests/components/roomba/test_config_flow.py Co-authored-by: Jan Bouwhuis <[email protected]> * Use constant for DEFAULT_DELAY in tests --------- Co-authored-by: Jan Bouwhuis <[email protected]> Co-authored-by: jbouwh <[email protected]>
…9230) * Update const.py DEFAULT_DELAY = 1 to DEFAULT_DELAY = 100 to fix timeout when adding a new device * Update config_flow.py continuous=False to continuous=True to fix timeout when adding a new device * Update homeassistant/components/roomba/const.py Co-authored-by: Jan Bouwhuis <[email protected]> * Update test_config_flow.py Change CONF_DELAY to match DEFAULT_DELAY (30 sec instead of 1) * Update tests/components/roomba/test_config_flow.py Co-authored-by: Jan Bouwhuis <[email protected]> * Use constant for DEFAULT_DELAY in tests --------- Co-authored-by: Jan Bouwhuis <[email protected]> Co-authored-by: jbouwh <[email protected]>
Proposed change
Fix timeout issue on Roomba integration when adding a new device
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: