-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
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
Increase Tomato request timeout #104203
Increase Tomato request timeout #104203
Conversation
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.
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 👍 |
The change from 3 to 60 seconds is large. What is the minimal timeout time that would work? |
Agreed. In my circumstances I think I get response in some 6 seconds based on limitted testing, however, it might differ since Tomato is available for range of devices with different CPU/RAM and it also depends on the utilisation. I am 100% sure 3seconds is insufficient since Tomato v2022.8 as the integration doesn't work at all. In my case it's Netgear Nighthawk R7000. I suggest to give it a couple of hours of testing on 15 seconds and should it work well I push another PR with 15 second if that's acceptable? |
You need to update the timeout in the tests as well to make CI test pass so it seems. |
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.
A timeout of 15 sec max. is suggested. CI tests need to be updated as well
Let set the 60 sec time out. But update the CI tests to make them pass. |
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 submitted a commit with CI tests updated, can you please review and approve, many thanks!
@ertechdesign I assume the PR is ready for review. If that is the fact please make it ready for review again so that the PR can be merged, |
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.
LGTM,
Thnx @ertechdesign 👍
Proposed change
Tomato integration was not working for about a year for many users. It was enough to extend the timeout. As soon as the timeout period was extended the integration works like a charm.
#103892
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: