Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Ykush.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class Ykush {
}

async powerAllOn() {
const args = [...this._prefix, '-s', this._serialNumber, '-u', 'a'];
const args = [...this._prefix, '-s', this._serialNumber.id, '-u', 'a'];
return Ykush._runYkushCmd(args);
}

async powerAllOff() {
const args = [...this._prefix, '-s', this._serialNumber, '-d', 'a'];
const args = [...this._prefix, '-s', this._serialNumber.id, '-d', 'a'];
return Ykush._runYkushCmd(args);
}

Expand All @@ -45,13 +45,13 @@ class Ykush {

async powerOn({channel}) {
this._validateChannel(channel);
const args = [...this._prefix, '-s', this._serialNumber, '-u', `${channel}`];
const args = [...this._prefix, '-s', this._serialNumber.id, '-u', `${channel}`];
return Ykush._runYkushCmd(args);
}

async powerOff({channel}) {
this._validateChannel(channel);
const args = [...this._prefix, '-s', this._serialNumber, '-d', `${channel}`];
const args = [...this._prefix, '-s', this._serialNumber.id, '-d', `${channel}`];
return Ykush._runYkushCmd(args);
}

Expand Down