Skip to content

Commit

Permalink
Trying to fix off bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Steiler committed Mar 21, 2019
1 parent 8c5fc5c commit 4687d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accessory/characteristic/SetAndCommitLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ function _commitFunction(service, type) {
} else if (hue === undefined && saturation === undefined && brightness === undefined) {
command = binary ? "ON" : "OFF";
} else if (hue === undefined && saturation === undefined) {
command = binary ? `${brightness}` : "0";
command = binary ? `${brightness}` : "OFF";
} else {
command = binary ? `${hue},${saturation},${brightness}` : "0";
command = binary ? `${hue},${saturation},${brightness}` : "OFF";
}
}
return command;
Expand Down

0 comments on commit 4687d56

Please sign in to comment.