Flash a group.

        :param duration: How quickly to flash (in seconds).

def flash(self, duration=0.0):
        """ Flash a group.

        :param duration: How quickly to flash (in seconds).
        """
        for _ in range(2):
            self.on = not self.on
            time.sleep(duration)