'Turn off a LED.'

def turn_off(self, **kwargs):

    if self.is_on:
        if (ATTR_TRANSITION in kwargs):
            transition_time = kwargs[ATTR_TRANSITION]
            self._led.transition(transition_time, is_on=False)
        else:
            self._led.off()
    self._is_on = False
    self.schedule_update_ha_state()
