fix: gateway compat

This commit is contained in:
Martin Giger 2021-08-11 21:42:20 +02:00
parent f2785c52b8
commit 671ea3fd6e
Signed by: freaktechnik
GPG key ID: AE530058EFE7FD60

View file

@ -318,13 +318,13 @@ class IRUSBDevice extends Device {
* @param {Action} action * @param {Action} action
*/ */
async performAction(action) { async performAction(action) {
switch(action.getName()) { switch(action.name) {
case 'launch': case 'launch':
return this.sendCommand(`LAUNCH ${action.getInput()}`); return this.sendCommand(`LAUNCH ${action.input}`);
case 'remoteShort': case 'remoteShort':
return this.sendKey(action.getInput(), false); return this.sendKey(action.input, false);
case 'remoteLong': case 'remoteLong':
return this.sendKey(action.getInput(), true); return this.sendKey(action.input, true);
case 'cancelKeys': case 'cancelKeys':
return this.sendCommand('HIDCODE0000000'); return this.sendCommand('HIDCODE0000000');
} }