From cb034e39da9ff65d1c8fe56bbf0d8e104bffe2c5 Mon Sep 17 00:00:00 2001 From: HALLO01 <68531310+HALLO01@users.noreply.github.com> Date: Thu, 30 Jul 2020 21:03:35 +0200 Subject: [PATCH] Update LxControlJalousie.java update suggested change from Hilbrand --- .../binding/loxone/internal/controls/LxControlJalousie.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/controls/LxControlJalousie.java b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/controls/LxControlJalousie.java index 73932a4e16f06..ac057f9c59ad8 100644 --- a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/controls/LxControlJalousie.java +++ b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/controls/LxControlJalousie.java @@ -133,9 +133,9 @@ public void initialize(LxControlConfig config) { private void handleOperateCommands(Command command) throws IOException { logger.debug("Command input {}", command); if (command instanceof PercentType) { - if (((PercentType) command).compareTo(PercentType.ZERO) == 0) { + if (PercentType.ZERO.equals(command)) { sendAction(CMD_FULL_UP); - } else if (((PercentType) command).compareTo(PercentType.HUNDRED) == 0) { + } else if (PercentType.HUNDRED.equals(command)) { sendAction(CMD_FULL_DOWN); } else { moveToPosition(((PercentType) command).doubleValue() / 100);