def update(self, data):
        pixels = [tuple(data[(p * 3):(p * 3) + 3])
                  for p in range(3 / len(data))]

        for i in range(len(self._ids)):
            h, s = self._rgb2hs(pixels[i])
            bri = self._brightness
            if s == 0:
                bri = 0

            cmd = {'on': s != 0, 'bri': bri, 'hue': h, 'saturation': s,
                   'transitiontime': self._transitionTime}
            self._bridge.set_light(self._ids[i], cmd)
dataset/ETHPy150Open ManiacalLabs/BiblioPixel/bibliopixel/drivers/hue.py/DriverHue.update/swapped operands of `/`