Fixing a bug in LocationVar.groovy: to get the string value during analysis we need...
[smartthings-infrastructure.git] / Location / LocationVar.groovy
index 3f5e46e25017e1e92d3841c1b9723cb8c9bdc163..c6b2c8b17b989adabc066dc45983e0fd6765ec96 100755 (executable)
@@ -51,7 +51,7 @@ class LocationVar {
        //By Model Checker
        def setValue(LinkedHashMap eventDataMap) {
                if (this.mode != eventDataMap['value']) {
-                       def sentMode = eventDataMap['value']
+                       String sentMode = eventDataMap['value']
                        println("The location is changed to $sentMode!")
                        this.mode = sentMode
                        this.locationMode = sentMode