code: def handle_update(self, action, params):
      
      _LOGGER.debug('Keypad: "%s" %s Action: %s Params: %s"' % (
                    self._keypad.name, self, action, params))
      if action != Led._ACTION_LED_STATE:
        _LOGGER.debug("Unknown action %d for led %d in keypad %d" % (
            action, self.number, self.keypad.name))
        return False
      elif len(params) < 1:
        _LOGGER.debug("Unknown params %s (action %d on led %d in keypad %d)" % (
            params, action, self.number, self.keypad.name))
        return False
      self._state = bool(params[0])
      self._query_waiters.notify()
      self._dispatch_event(Led.Event.STATE_CHANGED, {'state': self._state})
      return True
docs: Handle the specified action on this component.