From 671ea3fd6e89e67e473725878c9c175cf73b310d Mon Sep 17 00:00:00 2001 From: Martin Giger Date: Wed, 11 Aug 2021 21:42:20 +0200 Subject: [PATCH] fix: gateway compat --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 7157b3e..ac9cfbf 100644 --- a/index.js +++ b/index.js @@ -318,13 +318,13 @@ class IRUSBDevice extends Device { * @param {Action} action */ async performAction(action) { - switch(action.getName()) { + switch(action.name) { case 'launch': - return this.sendCommand(`LAUNCH ${action.getInput()}`); + return this.sendCommand(`LAUNCH ${action.input}`); case 'remoteShort': - return this.sendKey(action.getInput(), false); + return this.sendKey(action.input, false); case 'remoteLong': - return this.sendKey(action.getInput(), true); + return this.sendKey(action.input, true); case 'cancelKeys': return this.sendCommand('HIDCODE0000000'); }