def set_lights_temp(hass, lights, mired, brightness):
 for light in lights:
  if is_on(hass, light):
   turn_on(hass, light, color_temp=int(mired), brightness=brightness, transition=30)

def set_lights_temp ( hass , lights , mired , brightness ) : for light in lights : if is_on ( hass , light ) : turn_on ( hass , light , color_temp = int ( mired ) , brightness = brightness , transition = 30 )
set color of array of lights .