X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=ColorTemperature%2FColorTemperatures.groovy;h=1cc0aaa3190bf65da70b70f48d63feadad6a764b;hb=2d26e7af07daad1394408bdcf76150b5aacf3a8a;hp=5e70db65e6d360dc823c18e1efe974082c4d2980;hpb=83071d3bcfc33f015ece13868342644498a9dda3;p=smartthings-infrastructure.git diff --git a/ColorTemperature/ColorTemperatures.groovy b/ColorTemperature/ColorTemperatures.groovy index 5e70db6..1cc0aaa 100644 --- a/ColorTemperature/ColorTemperatures.groovy +++ b/ColorTemperature/ColorTemperatures.groovy @@ -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 - } }