Skip to content

Add Risco communication delay#101349

Merged
MartinHjelmare merged 14 commits into
home-assistant:devfrom
FredericMa:add_communication_delay
Nov 13, 2023
Merged

Add Risco communication delay#101349
MartinHjelmare merged 14 commits into
home-assistant:devfrom
FredericMa:add_communication_delay

Conversation

@FredericMa
Copy link
Copy Markdown
Contributor

@FredericMa FredericMa commented Oct 3, 2023

Breaking change

Proposed change

This PR add an optional communication_delay parameter to the config flow that introduces a delay in between the opening of the socket and the communication over the socket. This has been implemented in the upstream package in OnFreund/pyrisco#17

Package bump compare: OnFreund/pyrisco@v0.5.7...v0.5.8

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

@home-assistant
Copy link
Copy Markdown
Contributor

home-assistant Bot commented Oct 3, 2023

Hey there @OnFreund, mind taking a look at this pull request as it has been labeled with an integration (risco) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of risco can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign risco Removes the current integration label and assignees on the pull request, add the integration domain after the command.

@MartinHjelmare MartinHjelmare changed the title Risco - Add communication delay Add Risco communication delay Oct 4, 2023
Comment thread homeassistant/components/risco/config_flow.py Outdated
Comment thread homeassistant/components/risco/config_flow.py Outdated
@frenck frenck marked this pull request as draft October 6, 2023 13:15
@frenck
Copy link
Copy Markdown
Member

frenck commented Oct 6, 2023

Marking this PR draft for now. Feel free to undraft when the above discussion has been resolved and the PR is ready for review again.

../Frenck

@FredericMa
Copy link
Copy Markdown
Contributor Author

@OnFreund Can you please give your opinion on the proposed way to continue this PR. If we make a decision I can finish the PR with some additional changes.

@OnFreund
Copy link
Copy Markdown
Contributor

I'm sorry, given the situation in Israel I won't be able to meaningfully review this any time soon.

@FredericMa
Copy link
Copy Markdown
Contributor Author

I'm sorry, given the situation in Israel I won't be able to meaningfully review this any time soon.

Sure, I fully understand. I hope you and your family and friends are all fine! Take care!

Comment thread homeassistant/components/risco/config_flow.py Outdated
Comment thread homeassistant/components/risco/__init__.py Outdated
@FredericMa FredericMa marked this pull request as ready for review November 7, 2023 20:56
@frenck frenck added the smash Indicator this PR is close to finish for merging or closing label Nov 7, 2023
Comment thread homeassistant/components/risco/__init__.py Outdated
Comment thread homeassistant/components/risco/__init__.py Outdated
Comment thread homeassistant/components/risco/config_flow.py Outdated
Comment thread homeassistant/components/risco/config_flow.py Outdated
@home-assistant
Copy link
Copy Markdown
Contributor

home-assistant Bot commented Nov 9, 2023

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant Bot marked this pull request as draft November 9, 2023 10:48
@MartinHjelmare
Copy link
Copy Markdown
Member

Please add a link to a changelog or GitHub commit compare view for the version bump in the PR description. Thanks!

@FredericMa
Copy link
Copy Markdown
Contributor Author

All done! Thanks for the review.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MartinHjelmare
Copy link
Copy Markdown
Member

@OnFreund are you happy to merge now? Should this PR wait to be released in the next minor release in December or do we consider it a fix?

@OnFreund
Copy link
Copy Markdown
Contributor

Looks good to me, but missing a test for the case where the delay is updated outside the config flow.

Since this is not a recent regression, and the fix is not trivial, I would be inclined to wait for the December release, but I don't feel strongly either way.

Comment thread homeassistant/components/risco/__init__.py
@MartinHjelmare MartinHjelmare marked this pull request as draft November 10, 2023 12:46
@FredericMa FredericMa marked this pull request as ready for review November 13, 2023 07:55
Comment thread tests/components/risco/test_connect.py Outdated
@MartinHjelmare MartinHjelmare merged commit d4c5a93 into home-assistant:dev Nov 13, 2023
@FredericMa FredericMa deleted the add_communication_delay branch November 13, 2023 11:35
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix cla-signed code-owner-approved dependency Pull requests marked as a dependency upgrade Hacktoberfest has-tests integration: risco new-feature Quality Scale: platinum smash Indicator this PR is close to finish for merging or closing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants