-
-
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
[harmonyhub] Use AbstractStorageBasedTypeProvider #14507
Conversation
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
dc39874
to
cd16e4a
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-0-milestone-discussion/145133/18 |
...hub/src/main/java/org/openhab/binding/harmonyhub/internal/HarmonyHubDynamicTypeProvider.java
Show resolved
Hide resolved
Signed-off-by: Jan N. Klug <[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.
The changes look easy to apply.
Just one question.
...hub/src/main/java/org/openhab/binding/harmonyhub/internal/HarmonyHubDynamicTypeProvider.java
Show resolved
Hide resolved
@digitaldan ! can you please have a look to this PR and the related PR in core framework to tell us if the change looks good to you for the harmonuhub binding ? |
...hub/src/main/java/org/openhab/binding/harmonyhub/internal/HarmonyHubDynamicTypeProvider.java
Show resolved
Hide resolved
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, thank you
@digitaldan : would you like to test and review this PR before we merge it ? |
Thanks, i'll test this out today and get back to everyone |
I compiled and updated this on my local instance , the binding stays offline for 2 mins as before, then comes backs online and works normally from there. I have not had time to run through the core changes, i might be able to look on sunday, is there something else i need to be doing, like removing the thing and adding it back in ? (i assume its suppose to not have the 2 min delay now) edit: |
The 2min delay will be there for old things on first startup (because the binding can only create the dynamic types after/during first initialization). Ok subsequent starts it should not be there. |
Yep , after restarting the binding it now loads up right away. |
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!
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/357 |
* [harmonyhub] Use AbstractDynamicTypeProvider --------- Signed-off-by: Jan N. Klug <[email protected]> Signed-off-by: Thomas Burri <[email protected]>
* [harmonyhub] Use AbstractDynamicTypeProvider --------- Signed-off-by: Jan N. Klug <[email protected]> Signed-off-by: Matt Myers <[email protected]>
* [harmonyhub] Use AbstractDynamicTypeProvider --------- Signed-off-by: Jan N. Klug <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
This is the second of two reference implementations for the use of dynamic type providers.