Infrastructure compatible with locks, alarms, and thermostats group
[smartthings-infrastructure.git] / SmartThing / SmartThing.groovy
index 7b3b26efd42ac1c56b91df5f92dd3b35f39b2b3f..b869773031db6367270e65edbc88d3291137f6a9 100644 (file)
@@ -142,9 +142,9 @@ public class SmartThing {
        
        def currentValue(String deviceFeature) {
                if (deviceValueSmartThing.containsKey(deviceFeature)) {
-                       return deviceValueSmartThing.get(deviceFeature).toString()
+                       return deviceValueSmartThing.get(deviceFeature)
                } else if (deviceIntValueSmartThing.containsKey(deviceFeature)) {
-                       return deviceIntValueSmartThing.get(deviceFeature).getValue()   
+                       return deviceIntValueSmartThing.get(deviceFeature)      
                } else {
                        println("Wrong device feature is sent to this method!")
                }