Skip to content

Commit

Permalink
[surepetcare] minor checkstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Rene Scherer <[email protected]>
  • Loading branch information
renescherer authored and HerzScheisse committed Nov 1, 2020
1 parent 93cd5bc commit a16ef61
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public SurePetcareDevice assign(SurePetcareDevice newdev) {
this.index = newdev.index;
this.pairingAt = newdev.pairingAt;
this.control = newdev.control;
this.parent = newdev.parent; // FIXME link to correct parent device
this.parent = newdev.parent;
this.status = newdev.status;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ public String toString() {
return builder.toString();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public String toString() {
return enabled.toString() + "," + lockTime + "," + unlockTime;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ public SurePetcareDeviceCurfewList compact() {
}
return compactList;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public void initialize() {
updateStatus(ThingStatus.ONLINE);
updateState(BRIDGE_CHANNEL_ONLINE, OnOffType.ON);
updateThings();

} catch (AuthenticationException e) {
updateStatus(ThingStatus.OFFLINE);
}
Expand Down Expand Up @@ -115,7 +114,6 @@ public void initialize() {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"@text/offline.conf-error-invalid-refresh-intervals");
}

}

@SuppressWarnings("null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public void handleCommand(ChannelUID channelUID, Command command) {
@Override
protected void updateThing() {
synchronized (petcareAPI) {

SurePetcarePet pet = petcareAPI.getPet(thing.getUID().getId());
if (pet != null) {
logger.debug("Updating all thing channels for pet : {}", pet.toString());
Expand Down

0 comments on commit a16ef61

Please sign in to comment.