def convert_rgb_to_hsv(rgb):
    red, green, blue = [_ / BYTE_MAX for _ in rgb]

    hue, saturation, brightness = colorsys.rgb_to_hsv(red, green, blue)

    return [int(hue * SHORT_MAX),
            int(saturation * SHORT_MAX),
            int(brightness * SHORT_MAX)]


# pylint: disable=too-many-instance-attributes
Convert Home Assistant RGB values to HSV values.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/lifx.py/convert_rgb_to_hsv