Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / Methods / setLocationMode.groovy
index 12433ab5d15e08fefea8e4fde9c44dd5c2f95849..ece6c86f58b646b8d30ed65a485a1f2b6fbced9f 100644 (file)
@@ -1,8 +1,6 @@
 /////////////////////////////////////////////////////////////////////
 def setLocationMode(String mode) {
        log.debug "DEBUG: setLocationMode is called. Current mode is: ${location_mode} and new mode is: ${mode}"
-       location.setValue([name: "Location", value: "$mode", deviceId: "locationID0", descriptionText: "",
-                          displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
        location.setValue([name: "mode", value: "$mode", deviceId: "locationID0", descriptionText: "",
                           displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
        location_mode = mode