We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137a828 commit f97d173Copy full SHA for f97d173
helper.js
@@ -78,10 +78,16 @@ function getModeName(modeType,modeId) {
78
return false;
79
}
80
81
+function checkLocation(location) {
82
+ //console.log('result of checkLocation for ' + location + ' is: ' + config.HA_locations.indexOf(location) > -1);
83
+ return config.HA_locations.indexOf(location) > -1;
84
+}
85
+
86
// Exports
87
module.exports.getItem = getItem;
88
module.exports.getMetric = getMetric;
89
module.exports.getUnit = getUnit;
90
module.exports.getColor = getColor;
91
module.exports.getMode = getMode;
-module.exports.getModeName = getModeName;
92
+module.exports.getModeName = getModeName;
93
+module.exports.checkLocation = checkLocation;
0 commit comments