Skip to content

Commit

Permalink
Update LxControlJalousie.java
Browse files Browse the repository at this point in the history
update suggested change from Hilbrand
  • Loading branch information
HALLO01 committed Jul 30, 2020
1 parent 996c2e2 commit cb034e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb034e3

Please sign in to comment.