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!")
}