mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Better fix for sensorTag node linting - as in actually still works...
This commit is contained in:
		@@ -16,9 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
module.exports = function(RED) {
 | 
					module.exports = function(RED) {
 | 
				
			||||||
    "use strict";
 | 
					    "use strict";
 | 
				
			||||||
    var SensorTag = require('sensortag');
 | 
					    var SensorTag = require("sensortag");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var s = function sensorTagNode(n) {
 | 
					    function SensorTagNode(n) {
 | 
				
			||||||
        RED.nodes.createNode(this,n);
 | 
					        RED.nodes.createNode(this,n);
 | 
				
			||||||
        this.name = n.name;
 | 
					        this.name = n.name;
 | 
				
			||||||
        this.topic = n.topic;
 | 
					        this.topic = n.topic;
 | 
				
			||||||
@@ -111,7 +111,7 @@ module.exports = function(RED) {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function enable(node) {
 | 
					    var enable = function(node) {
 | 
				
			||||||
        if (node.temperature) {
 | 
					        if (node.temperature) {
 | 
				
			||||||
            node.stag.notifyIrTemperature(function() {});
 | 
					            node.stag.notifyIrTemperature(function() {});
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
@@ -158,5 +158,5 @@ module.exports = function(RED) {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    RED.nodes.registerType("sensorTag",sensorTagNode);
 | 
					    RED.nodes.registerType("sensorTag",SensorTagNode);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user