Compare commits
1 Commits
6ae622b6bf
...
994cf641a3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
994cf641a3 |
@@ -209,7 +209,6 @@ _callMeasurementHandler(measurementType, value, position, context) {
|
|||||||
|
|
||||||
async handleInput(source, action, parameter) {
|
async handleInput(source, action, parameter) {
|
||||||
|
|
||||||
this.logger.debug("hello");
|
|
||||||
//sanitize input
|
//sanitize input
|
||||||
if( typeof action !== 'string'){this.logger.error(`Action must be string`); return;}
|
if( typeof action !== 'string'){this.logger.error(`Action must be string`); return;}
|
||||||
//convert to lower case to avoid to many mistakes in commands
|
//convert to lower case to avoid to many mistakes in commands
|
||||||
@@ -218,8 +217,6 @@ _callMeasurementHandler(measurementType, value, position, context) {
|
|||||||
// check for validity of the request
|
// check for validity of the request
|
||||||
if(!this.isValidActionForMode(action,this.currentMode)){return ;}
|
if(!this.isValidActionForMode(action,this.currentMode)){return ;}
|
||||||
if (!this.isValidSourceForMode(source, this.currentMode)) {return ;}
|
if (!this.isValidSourceForMode(source, this.currentMode)) {return ;}
|
||||||
|
|
||||||
this.logger.debug("hello2");
|
|
||||||
|
|
||||||
this.logger.info(`Handling input from source '${source}' with action '${action}' in mode '${this.currentMode}'.`);
|
this.logger.info(`Handling input from source '${source}' with action '${action}' in mode '${this.currentMode}'.`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user