-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Arne Seime <[email protected]>
Signed-off-by: Arne Seime <[email protected]>
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.
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.
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.
See ^
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.
In addition to @lsiepel's, two from my side. Thanks!
public boolean isUnifios() { | ||
return unifios; | ||
} |
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.
Duplicated, see lines 103-105.
public void setUnifios(boolean unifios) { | ||
this.unifios = unifios; | ||
} |
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.
Duplicated, see lines 107-109.
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.