thing-it-device-wtec
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -177,4 +177,5 @@ module.exports = { | ||
if (this.location.switch) return this.location.setScene('0%') | ||
else return this.location.setScene('100%'); | ||
const scenes = this.state.scenes.filter(scene => scene.name === (this.state.switch ? '0' : '100') || scene.name === (this.state.switch ? '0%' : '100%')); | ||
if(scenes.length > 0) return this.location.setScene(scenes[0].name); | ||
}; | ||
@@ -181,0 +182,0 @@ |
@@ -87,4 +87,5 @@ module.exports = { | ||
if (this.location.switch) return this.location.setScene('0%') | ||
else return this.location.setScene('100%'); | ||
const scenes = this.state.scenes.filter(scene => scene.name === (this.state.switch ? '0' : '100') || scene.name === (this.state.switch ? '0%' : '100%')); | ||
if(scenes.length > 0) return this.location.setScene(scenes[0].name); | ||
}; | ||
@@ -91,0 +92,0 @@ |
{ | ||
"name": "thing-it-device-wtec", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Thing-IT device wtec", | ||
@@ -5,0 +5,0 @@ "main": "smartengine.js", |
463511