Commit #9: extension to the infrastructure with more devices + minor changes in extra...
[smartthings-infrastructure.git] / Location / LocationVar.groovy
index cfaa308bb2e74aadeb707e1dbf06261d4648ae98..43c88cd078867f09eed4ae22cb884f4d0034871b 100644 (file)
@@ -3,7 +3,7 @@ package Location
 
 class LocationVar {
        private int contactBookEnabled
-       private String modes
+       private def modes
        private String mode
        private List contacts
        private List phoneNumbers
@@ -11,7 +11,7 @@ class LocationVar {
        private Phrase helloHome
 
        LocationVar() {
-               this.modes = "'home', 'away', 'night'"
+               this.modes = [[name: "home"],[name: "away"],[name: "night"]]
                this.mode = "home"
                this.helloHome = new Phrase()
                this.contactBookEnabled = 1