def set_flashing(self, duration, hsv1, hsv2):
        """Turn the bulb on, flashing with two colors."""
        self.set_transition_time(100)
        for step in range(0, int(duration/2)):
            self.set_color_hsv(hsv1[0], hsv1[1], hsv1[2])
            time.sleep(1)
            self.set_color_hsv(hsv2[0], hsv2[1], hsv2[2])
            time.sleep(1)
def set_flashing ( self , duration , hsv1 , hsv2 ) : self . set_transition_time ( 100 ) for step in range ( 0 , int ( duration / 2 ) ) : self . set_color_hsv ( hsv1 [ 0 ] , hsv1 [ 1 ] , hsv1 [ 2 ] ) time . sleep ( 1 ) self . set_color_hsv ( hsv2 [ 0 ] , hsv2 [ 1 ] , hsv2 [ 2 ] ) time . sleep ( 1 )
Turn the bulb on, flashing with two colors.