code: def _control_resp(self, data, state):
          
          if _is_control_response(data):
              ack_state = bytes([data[22]])
              if state == ack_state:
                  _LOGGER.debug("Received state ack from %s, state: %s",
                                self.host, ord(ack_state))
                  return ack_state
docs: Handle a control response.
  
          :param data: Payload.
          :param state: Requested state.
          :returns: Acknowledged state.