'Initialize a Light.'

def __init__(self, light):

    self._light = light
    self._light_control = light.light_control
    self._light_data = light.light_control.lights[0]
    self._name = light.name
    self._rgb_color = None
    self._features = SUPPORT_BRIGHTNESS
    if (self._light_data.hex_color is not None):
        if (self._light.device_info.manufacturer == IKEA):
            self._features |= SUPPORT_COLOR_TEMP
        else:
            self._features |= SUPPORT_RGB_COLOR
    self._ok_temps = ALLOWED_TEMPERATURES.get(self._light.device_info.manufacturer)
