code: def set_xy_color(self, color_x, color_y, *, index=0, transition_time=None):
          
          self._value_validate(color_x, RANGE_X, "X color")
          self._value_validate(color_y, RANGE_Y, "Y color")
  
          values = {
              ATTR_LIGHT_COLOR_X: color_x,
              ATTR_LIGHT_COLOR_Y: color_y
          }
  
          if transition_time is not None:
              values[ATTR_TRANSITION_TIME] = transition_time
  
          return self.set_values(values, index=index)
docs: Set xy color of the light.