Skip to content

Commit

Permalink
fix: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Mar 14, 2022
1 parent 414244d commit 0180109
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/zwave-js/src/lib/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2871,15 +2871,12 @@ protocol version: ${this.protocolVersion}`;
stateful: false,
},
);
return;
}
if (command instanceof MultilevelSwitchCCStartLevelChange) {
} else if (command instanceof MultilevelSwitchCCStartLevelChange) {
this.driver.controllerLog.logNode(this.id, {
endpoint: command.endpointIndex,
message:
"treating MultilevelSwitchCCStartLevelChange::Set as a value event",
"treating MultilevelSwitchCC::StartLevelChange as a notification",
});
// Notify listeners
this.emit(
"notification",
this,
Expand All @@ -2889,21 +2886,18 @@ protocol version: ${this.protocolVersion}`;
direction: command.direction,
},
);
return;
}
if (command instanceof MultilevelSwitchCCStopLevelChange) {
} else if (command instanceof MultilevelSwitchCCStopLevelChange) {
this.driver.controllerLog.logNode(this.id, {
endpoint: command.endpointIndex,
message:
"treating MultilevelSwitchCCStopLevelChange::Set as a value event",
"treating MultilevelSwitchCC::StopLevelChange as a notification",
});
this.emit(
"notification",
this,
CommandClasses["Multilevel Switch"],
{ eventType: MultilevelSwitchCommand.StopLevelChange },
);
return;
}
}

Expand Down

0 comments on commit 0180109

Please sign in to comment.