Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / ColorTemperature / ColorTemperatures.groovy
index 5e70db65e6d360dc823c18e1efe974082c4d2980..1cc0aaa3190bf65da70b70f48d63feadad6a764b 100644 (file)
@@ -2,9 +2,6 @@
 package ColorTemperature
 import SmartThing.SmartThings
 
-//Importing mutable integer class
-import MutableInteger.MutableInteger
-
 public class ColorTemperatures extends SmartThings {
        List colorTemperatues = new ArrayList()
 
@@ -13,10 +10,10 @@ public class ColorTemperatures extends SmartThings {
                colorTemperatues = smartThings
 
                // Initialization
-               StringBuilder id = new StringBuilder("colorTemperatureID0")
-               StringBuilder label = new StringBuilder("colorTemperature")
-               StringBuilder displayName = new StringBuilder("colorTemperature0")
-               MutableInteger colorTemperatue = new MutableInteger()
+               String id = "colorTemperatureID0"
+               String label = "colorTemperature"
+               String displayName = "light"
+               Integer colorTemperatue
 
                if (init)
                        colorTemperature = 10000
@@ -30,11 +27,4 @@ public class ColorTemperatures extends SmartThings {
        def setColorTemperature(int newValue) {
                colorTemperatues[0].setColorTemperature(newValue)
        }
-
-       // Methods to return values
-       def getCurrentColorTemperature() {
-               List tmpValues = new ArrayList()
-               tmpValues.add(colorTemperatues[0].getCurrentColorTemperature())
-               return tmpValues
-       }
 }