Commenting out the Verify API calls in the object instantiation to avoid state explos...
[smartthings-infrastructure.git] / SleepSensor / SleepSensors.groovy
index 9c49eb9bc0dfdc68d384c55ce9d4ee796d7130e5..32895c804919fcd27475f0d3539d24f227415268 100644 (file)
@@ -22,12 +22,12 @@ public class SleepSensors {
                this.deviceNumbers = deviceNumbers
                this.sleepSensors = []
 
                this.deviceNumbers = deviceNumbers
                this.sleepSensors = []
 
-               def init = Verify.getBoolean()
+               /*def init = Verify.getBoolean()
                if (init) {
                        this.sleeping = "sleeping"
                } else {
                        this.sleeping = "not sleeping"
                if (init) {
                        this.sleeping = "sleeping"
                } else {
                        this.sleeping = "not sleeping"
-               }
+               }*/
                sleepSensors.add(new SleepSensor(id, label, displayName, this.sleeping))
        }
 
                sleepSensors.add(new SleepSensor(id, label, displayName, this.sleeping))
        }