Skip to content
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

[unifi] Make request timeout configurable to deal with slower devices like Unifi Express #18349

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

seime
Copy link
Contributor

@seime seime commented Mar 2, 2025

Make request timeout configurable, default is unchanged at 5 seconds.
Necessary to deal wtih slower controllers like Unifi Express which frequently times out with the default value.

seime added 2 commits March 2, 2025 18:16
Signed-off-by: Arne Seime <[email protected]>
@seime seime requested review from mgbowman and Hilbrand as code owners March 2, 2025 17:22
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks. Please also add the configuration parameter to the thing-type.xml. Probably mark it as advanced.
Don't forget to run the i18n plugin to regenerate the properties file afterwards.

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

See ^

@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Mar 2, 2025
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

In addition to @lsiepel's, two from my side. Thanks!

Comment on lines +95 to +97
public boolean isUnifios() {
return unifios;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated, see lines 103-105.

Comment on lines +99 to +101
public void setUnifios(boolean unifios) {
this.unifios = unifios;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated, see lines 107-109.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants