def METHOD_NAME(self, value):
    self._flashing = value
    if self._flashRate > 0 and value:
        if self._timer.isActive():
            return
        self._timer.start(self._flashRate)
    else:
        self._timer.stop()
        # make sure when flashing stops led ends up at state
        self._state = self.state
    self.update()