Skip to content

Commit

Permalink
Merge pull request #55 from fruggy83/54-channelreference
Browse files Browse the repository at this point in the history
Fixed channel comparison
  • Loading branch information
fruggy83 authored Jan 11, 2019
2 parents e063e40 + 2a5b479 commit 42fb082
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ public D5_00_01(ERP1Message packet) {

@Override
protected State convertToStateImpl(String channelId, String channelTypeId, State currentState, Configuration config) {
if (!isValid()) {
return UnDefType.UNDEF;
}

if (channelId == CHANNEL_CONTACT) {
if (channelId.equals(CHANNEL_CONTACT)) {
return bytes[0] == CLOSED ? OpenClosedType.CLOSED : OpenClosedType.OPEN;
}

Expand Down

0 comments on commit 42fb082

Please sign in to comment.