mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
[freeboxos] Avoid a call to the lcd API when no required (#17254)
Fix #17253 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
034c03f9aa
commit
d332dd41f8
@ -47,18 +47,17 @@ public class RevolutionHandler extends ServerHandler {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean internalHandleCommand(String channelId, Command command) throws FreeboxException {
|
protected boolean internalHandleCommand(String channelId, Command command) throws FreeboxException {
|
||||||
LcdManager manager = getManager(LcdManager.class);
|
LcdManager manager = getManager(LcdManager.class);
|
||||||
Config config = manager.getConfig();
|
|
||||||
switch (channelId) {
|
switch (channelId) {
|
||||||
case LCD_BRIGHTNESS:
|
case LCD_BRIGHTNESS:
|
||||||
setBrightness(manager, config, command);
|
setBrightness(manager, manager.getConfig(), command);
|
||||||
internalPoll();
|
internalPoll();
|
||||||
return true;
|
return true;
|
||||||
case LCD_ORIENTATION:
|
case LCD_ORIENTATION:
|
||||||
setOrientation(manager, config, command);
|
setOrientation(manager, manager.getConfig(), command);
|
||||||
internalPoll();
|
internalPoll();
|
||||||
return true;
|
return true;
|
||||||
case LCD_FORCED:
|
case LCD_FORCED:
|
||||||
setForced(manager, config, command);
|
setForced(manager, manager.getConfig(), command);
|
||||||
internalPoll();
|
internalPoll();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user