'Turn off a group.'

@state(False)
def turn_off(self, transition_time, pipeline, **kwargs):

    if self.is_on:
        if self.config[CONF_FADE]:
            pipeline.transition(transition_time, brightness=0.0)
        pipeline.off()
