-
-
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
[freeboxos] Avoid useless API requests (server/player) #17237
Conversation
Avoids API requests when channels are unlinked. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Let me know the outcome of this in term of requests decrease. |
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
For the Revolution server, it can be 9 calls less, depending on what channels are linked. The minimum number of calls is now one call, the max is 10 calls. If all non advanced channels are linked, this will be 5 calls now, instead of 10 calls before. So a gain of 50%. For the (active) player, it is just one call less, depending on what channels are linked. The minimum number of calls is now 2 calls, the max is 3 calls.
No |
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 for the optimization. I have left only some minor optional comments for consideration.
...eboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ActivePlayerHandler.java
Outdated
Show resolved
Hide resolved
...eboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ActivePlayerHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
...reeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/RevolutionHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
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.
Thank you @jlaur |
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Christian Koch <christian@koch-bensheim.de>
Avoids API requests when channels are unlinked.
Signed-off-by: Laurent Garnier lg.hc@free.fr