Fixing bugs in classes
[smartthings-infrastructure.git] / ContactSensor / ContactSensors.groovy
index c691853aad4c3ea157ff65cc8b90ac4ff290f3f0..74508a8aba0915799114b190407e3961f5c91d6b 100644 (file)
@@ -25,23 +25,6 @@ public class ContactSensors {
                this.deviceNumbers = deviceNumbers
                this.contacts = []
 
-               /*def initSensor = Verify.getBoolean()
-               if (initSensor) {
-                       this.contactState = "closed"
-                       this.currentContact = "closed"
-                       this.latestValue = "closed"
-               } else {
-                       this.contactState = "open"
-                       this.currentContact = "open"
-                       this.latestValue = "open"
-               }
-
-               def initAlarm = Verify.getBoolean()
-               if (initAlarm) {
-                       this.alarmState = "armed"
-               } else {
-                       this.alarmState = "not armed"
-               }*/
                contacts.add(new ContactSensor(id, label, displayName, this.contactState, this.currentContact, this.alarmState, this.latestValue))
        }